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's the order in which the local objects are destructed?
What does asterisk mean in c++?
What are smart pointers?
Why are pointers not used in c++?
Define copy constructor.
What are static and dynamic type checking?
What is meant by iomanip in c++?
Explain linear search.
What is an operator in c++?
What is the benefit of encapsulation?
How to declare a pointer to an array of integers?
Is swift faster than c++?
Name the operators that cannot be overloaded in C++?
Which is better turbo c++ or dev c++?
Is c++ fully object oriented?