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


Please Help Members By Posting Answers For Below Questions

What is the difference between a baller and a reference in C++?

787


What do you mean by function overriding & function overloading in c++?

792


Evaluate !(1&&1||1&&0) a) Error b) False c) True

933


Explain Text Manipulation Routines?

819


What is the oldest programming language?

766


Is there a sort function in c++?

750


what is Loop function? What are different types of Loops?

880


What is fflush c++?

760


If dog is a friend of boy, is boy a friend of dog?

759


Why is c++ considered difficult?

820


What is a linked list in c++?

769


What character terminates all character array strings a) b) . c) END

950


Explain selection sorting. Also write an example.

796


What is the difference between public, private, and protected access?

802


What is the best it certification?

817