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 / gopinath das

a,b,c,d

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I learn c++ in a week?

1069


Explain how would you handle a situation where you cannot call the destructor of a local explicitly?

970


Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.

3005


How many standards of c++ are there?

1095


Is arr and &arr are same expression for an array?

1053


What is a container class? What are the types of container classes in c++?

1260


Difference between pointer to constant and constant pointer to a constant. Give example.

1117


Why do we need templates?

990


What are the advantages of using a pointer?

1079


Can member functions be private?

1003


Write about a nested class and mention its use?

1098


Can I learn c++ without c?

1144


What is implicit conversion/coercion in c++?

1442


Is set c++?

999


What's the most powerful programming language?

1039