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
There is no default Constructor
Is This Answer Correct ? | 11 Yes | 3 No |
Post New Answer View All Answers
What is the difference between a baller and a reference in C++?
What do you mean by function overriding & function overloading in c++?
Evaluate !(1&&1||1&&0) a) Error b) False c) True
Explain Text Manipulation Routines?
What is the oldest programming language?
Is there a sort function in c++?
what is Loop function? What are different types of Loops?
What is fflush c++?
If dog is a friend of boy, is boy a friend of dog?
Why is c++ considered difficult?
What is a linked list in c++?
What character terminates all character array strings a) b) . c) END
Explain selection sorting. Also write an example.
What is the difference between public, private, and protected access?
What is the best it certification?