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

How to declare an array of pointers to integer?

1074


what is a class? Explain with an example.

1103


What is a friend function in c++?

1482


What does namespace mean in c++?

1038


What new()is different from malloc()?

1049


Difference between strdup and strcpy?

1140


Program to check whether a word is a sub-string or not of a string typed

1979


C is to C++ as 1 is to a) What the heck b) 2 c) 10

1009


What is type of 'this' pointer? Explain when it is get created?

971


Which one is a preferred language C or C++? Why?

1026


Is string an object in c++?

1108


Do inline functions improve performance?

1015


Write about c++ storage classes?

1151


What is the arrow operator in c++?

952


What do you mean by overhead in c++?

1034