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

Explain the benefits of proper inheritance.

1150


What is the fastest c++ compiler?

1106


Explain the concept of friend function in c++?

1110


Can a function take variable length arguments, if yes, how?

1016


What is c++ best used for?

1068


What are virtual constructors/destructors?

1014


Is nan a c++?

1148


What are inline functions? What is the syntax for defining an inline function?

1161


Explain the isa and hasa class relationships. How would you implement each?

1132


When should you use global variables?

1215


What are the uses of typedef in a program?

1085


Why use of template is better than a base class?

1187


Write a C++ Program to check whether a number is prime number or not?

1131


Will rust take over c++?

1060


What is a singleton class c++?

1037