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
Describe private, protected and public?
Explain how an exception handler is defined and invoked in a Program.
What does flush do c++?
Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort
Explain one-definition rule (odr).
What is the use of typedef?
What is data binding in c++?
What is bubble sort c++?
How important is c++?
What is abstraction in c++?
What is an adaptor class or wrapper class in c++?
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.
Will this c++ program execute or not?
What is a local variable?
Why do we use classes in programming?