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 / alphare

a, d, e

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is main function in c++ with example?

1172


How compile and run c++ program in turbo c++?

1136


What are stacks?

1024


What is endl?

1111


Explain friend class?

1101


You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()

1112


what are the events occur in intr activated on interrupt vector table

1727


What do you mean by volatile and mutable keywords used in c++?

953


What is an operator function? Describe the function of an operator function?

1099


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

1197


What are abstract data types in c++?

952


What data encapsulation is in c++?

1083


Can we use struct in c++?

987


How many types of modularization are there in c++?

1045


Can we specify variable field width in a scanf() format string? If possible how?

1193