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 / sampurna pandey

a,b,c,e

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you initialize a string in c++?

1049


What are default parameters? How are they evaluated in c++ function?

1222


What is the difference between an external iterator and an internal iterator?

1141


Do you know the problem with overriding functions?

1170


Evaulate: 22%5 a) 2 b) 4 c) 0

1142


When there is a global variable and local variable with the same name, how will you access the global variable?

1157


What kind of problems can be solved by a namespace?

1134


Can a class be static in c++?

1144


What is binary search in c++?

1082


What do nonglobal variables default to a) auto b) register c) static

1190


Explain how to initialize a const member data.

1080


What is purpose of new operator?

1126


Is C++ case sensitive a) False b) Depends on implementation c) True

1132


What is an inline function in c++?

1161


What is bubble sort c++?

1064