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's the order in which the local objects are destructed?

1307


What does asterisk mean in c++?

1163


What are smart pointers?

2388


Why are pointers not used in c++?

1190


Define copy constructor.

1178


What are static and dynamic type checking?

1138


What is meant by iomanip in c++?

1290


Explain linear search.

1109


What is an operator in c++?

1117


What is the benefit of encapsulation?

1124


How to declare a pointer to an array of integers?

1185


Is swift faster than c++?

1070


Name the operators that cannot be overloaded in C++?

1110


Which is better turbo c++ or dev c++?

1127


Is c++ fully object oriented?

1017