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 compile the source code with your compiler?

1057


What is the use of data hiding?

1017


Explain what is oop?

1088


which of the following is not an secondary constant a) array b) real c) union

1799


What is vector processing?

1145


How do you decide which integer type to use?

1008


how to explain our contribution in the project?

3699


Which software is used for c++ programming?

1079


What is a stack c++?

1012


What is buffering in c++?

1062


what is C++ exceptional handling?

1174


What is the difference between a definition and a declaration?

1069


What is enum class in c++?

1249


Is c++ a pure oop language?

1082


How can you say that a template is better than a base class?

1073