Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 pointer -to-members in C++? Give their syntax?

978


What are punctuators in c++?

1085


What is scope operator in c++?

1031


What is an inline function in c++?

1066


What is the use of data hiding?

967


What is an overflow error?

1045


Why do we use setw in c++?

1049


Which is the best c++ software?

1044


What are the various situations where a copy constructor is invoked?

1067


What is the type of 'this' pointer?

968


What is virtual function? Explain with an example

1030


What is stream and its types in c++?

984


What is an inclusion guard?

1108


What are the differences between the function prototype and the function defi-nition?

1041


What c++ is used for?

1009