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

Do you know about C++ 11 standard?

1090


How the keyword struct is different from the keyword class in c++?

1043


What is decltype c++?

999


Which bit wise operator is suitable for checking whether a particular bit is on or off?

1033


What is an iterator?

1195


What are manipulators used for?

1101


What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?

1180


When can I use a forward declaration?

1102


What is an incomplete type in c++?

1282


Specify different types of decision control statements?

858


What is this weird colon-member (" : ") syntax in the constructor?

1029


Why do we need runtime polymorphism in c++?

1026


What is an orthogonal base class in c++?

1162


What is virtual destructor? What is its use?

1076


Why would you use pointers in c++?

1152