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 / alphare

a, d, e

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does return 0 do in c++?

1081


Is c++ an integer?

1082


Is it possible to get the source code back from binary file?

1429


What is microsoft c++ redistributable 2013?

1161


Can I have a reference as a data member of a class? If yes, then how do I initialise it?

1278


What is the difference between public and private data members?

1231


Who created c++?

1115


What's the most powerful programming language?

1094


What are the general quetions are in DEna bank manager IT/System interviews?

2064


What is long in c++?

1300


Does dev c++ support c++ 11?

1086


What will happen if a pointer is deleted twice?

1248


What is object file? How can you access object file?

1285


Explain virtual class and friend class.

1101


What is a class template in c++?

1098