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
What are associate containers?
What is array give example?
What is general format for a prototype?
What is setw manipulator in c++?
What are the classes in c++?
Write about the members that a derived class can add?
You run a shell on unix system. How would you tell which shell are you running?
Is arr and &arr are same expression for an array?
What are the important differences between c++ and java?
Is it possible to write a c++ template to check for a function's existence?
How do you save a c++ program?
What is a constant reference?
What do you understand by zombie objects in c++?
Explain public, protected, private in c++?
Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?