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

What is #include cmath?

1097


write a programme to get a character and thier ASCII value

3046


What are the four main data types?

1085


Difference between pointer to constant and constant pointer to a constant. Give example.

1125


What is the difference between #import and #include in c++?

1110


Can we change the basic meaning of an operator in c++?

1114


Tell me what are static member functions?

1086


What is exception handling? Does c++ support exception handling?

1033


what is C++ objects?

1196


What operators can you overload in c++?

1044


What is the role of C++ shorthand's?

1282


Describe the syntax of single inheritance in C++?

1080


How do we balance an AVL Tree in C++?

1130


Please explain class & object in c++?

1095


Explain friend class?

1132