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

a

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are associate containers?

1024


What is array give example?

1049


What is general format for a prototype?

1040


What is setw manipulator in c++?

1076


What are the classes in c++?

1108


Write about the members that a derived class can add?

970


You run a shell on unix system. How would you tell which shell are you running?

1168


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

1053


What are the important differences between c++ and java?

1152


Is it possible to write a c++ template to check for a function's existence?

1029


How do you save a c++ program?

1037


What is a constant reference?

1073


What do you understand by zombie objects in c++?

1096


Explain public, protected, private in c++?

1012


Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?

4119