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 / gopinath das
a,b,c,d
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
What is #include cmath?
write a programme to get a character and thier ASCII value
What are the four main data types?
Difference between pointer to constant and constant pointer to a constant. Give example.
What is the difference between #import and #include in c++?
Can we change the basic meaning of an operator in c++?
Tell me what are static member functions?
What is exception handling? Does c++ support exception handling?
what is C++ objects?
What operators can you overload in c++?
What is the role of C++ shorthand's?
Describe the syntax of single inheritance in C++?
How do we balance an AVL Tree in C++?
Please explain class & object in c++?
Explain friend class?