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 / sampurna pandey

a,b,c,e

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 basic if statement syntax?

1039


Is c# written in c++?

946


Can you pass a vector to a function?

936


Define a pointer to a data member of the type pointer to pointer?

952


What is the difference between structure and class?

1197


Why is c++ awesome?

1003


Explain the difference between realloc() and free() in c++?

980


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

977


What is math h in c++?

1130


the maximum length of a character constant can be a) 2 b) 1 c) 8

1058


Can we use pointers in c++?

1024


Explain Memory Allocation in C/C++ ?

1042


In a function declaration what does extern means?

1007


In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?

1041


What is the default access level?

1048