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
What do the keywords volatile and mean mutable?
Write a program which uses Command Line Arguments
How should a contructor handle a failure?
What is the use of map in c++?
What is scope in c++ with example?
Can c++ do everything c can?
Can we use struct in c++?
What is main function in c++ with example?
Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort
Differentiate between the manipulator and setf( ) function?
What do you mean by volatile and mutable keywords used in c++?
What is a tree in c++?
What is a .lib file in c++?
Which programming language is best?
Why do we use vector in c++?