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 / alphare
a, d, e
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What does return 0 do in c++?
Is c++ an integer?
Is it possible to get the source code back from binary file?
What is microsoft c++ redistributable 2013?
Can I have a reference as a data member of a class? If yes, then how do I initialise it?
What is the difference between public and private data members?
Who created c++?
What's the most powerful programming language?
What are the general quetions are in DEna bank manager IT/System interviews?
What is long in c++?
Does dev c++ support c++ 11?
What will happen if a pointer is deleted twice?
What is object file? How can you access object file?
Explain virtual class and friend class.
What is a class template in c++?