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 do you mean by inheritance in c++?

1050


How would you use qsort() function to sort an array of structures?

1079


What is a block in c++?

1004


why is iostream::eof inside a loop condition considered wrong?

1024


Write bites in Turbo c++ Header ("Include") Files.

1222


What is a buffer c++?

1024


Difference between Abstraction and encapsulation in C++?

1098


Write about the role of c++ in the tradeoff of safety vs. Usability?

1030


What is the difference between delegation and implemented-in-terms-of?

977


Write about a nested class and mention its use?

1074


What are pointer-to-members? Explain.

1088


Can there be at least some solution to determine the number of arguments passed to a variable argument list function?

977


How important is c++?

946


What kind of problems can be solved by a namespace?

1041


How java is different from c and c++?

1168