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

Is std :: string immutable?

1042


Is java a c++?

1046


When does the c++ compiler create temporary variables?

1044


Can a new be used in place of old mallocq? If yes, why?

1096


Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.

1071


What is the difference between map and hashmap in c++?

1115


Mention the ways in which parameterized can be invoked. Give an example of each.

1062


What is c++ flowchart?

1390


Why c++ is created?

1006


Can we run c program in turbo c++?

1082


What does new return if there is insufficient memory to make your new object?

1036


What are the advantages of using const reference arguments in a function?

1077


Is c++ an integer?

1036


Why do we need function?

1054


What is #include sstream?

1064