class Foo {
const int x;
protected:
Foo(int f);
~Foo();
};
Foo f;
Referring to the sample code above, why will the class
declaration not compile?
a) The variable x is const.
b) The destructor is protected.
c) The destructor is not public.
d) The constructor is protected.
e) There is no default constructor.
Answer Posted / guest
a
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
Is std :: string immutable?
Is java a c++?
When does the c++ compiler create temporary variables?
Can a new be used in place of old mallocq? If yes, why?
Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.
What is the difference between map and hashmap in c++?
Mention the ways in which parameterized can be invoked. Give an example of each.
What is c++ flowchart?
Why c++ is created?
Can we run c program in turbo c++?
What does new return if there is insufficient memory to make your new object?
What are the advantages of using const reference arguments in a function?
Is c++ an integer?
Why do we need function?
What is #include sstream?