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

Describe new operator?

1094


How the delete operator differs from the delete[]operator?

1048


Carry out conversion of one object of user-defined type to another?

986


What are vectors used for in c++?

1011


Keyword mean in declaration?

1002


What is ofstream c++?

1017


What are the advantages of inheritance in c++?

1042


Differentiate between the message and method in c++?

1006


Name the debugging methods that are used to solve problems?

1036


What is class invariant in c++?

1164


What is a container class? What are the types of container classes in c++?

1152


What is the type of this pointer in c++?

1008


When must you use a pointer rather than a reference?

987


Explain friend class?

1085


Explain the difference between abstract class and interface in c++?

924