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 is c++ in english?
Show the declaration for a static function pointer.
Is java the same as c++?
Is c++ slower than c?
What is c++ 11 and c++ 14?
What is meant by iomanip in c++?
What are signs of manipulation?
What are namespaces in c++?
In inline " expression passed as argument are evalauated once " while in macro "in some cases expression passed as argument are evaluated more than once " --> i am not getting it plz help to make me understand....
How is objective c different from c++?
What is the difference between global variables and static varables?
What is a storage class used in c++?
Is c the same as c++?
What is c++ & why it is used?
an operation between an integer and real always yeilds a) integer result b) real result c) float result