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 / sampurna pandey
a,b,c,e
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
How do you compile the source code with your compiler?
What is the use of data hiding?
Explain what is oop?
which of the following is not an secondary constant a) array b) real c) union
What is vector processing?
How do you decide which integer type to use?
how to explain our contribution in the project?
Which software is used for c++ programming?
What is a stack c++?
What is buffering in c++?
what is C++ exceptional handling?
What is the difference between a definition and a declaration?
What is enum class in c++?
Is c++ a pure oop language?
How can you say that a template is better than a base class?