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

Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement

1180


What is an inclusion guard?

1197


Which bitwise operator is used to check whether a particular bit is on or off?

1056


What is the main use of c++?

1123


What are c++ data types?

1161


Can we use clrscr in c++?

1079


Is empty stack c++?

993


What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?

1195


How would you use the functions memcpy(), memset(), memmove()?

1092


Write about the stack unwinding?

1059


Define upcasting.

1037


How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array?how can you find the nodes with repetetive data in a linked list?

1285


Can I uninstall microsoft c++ redistributable?

1112


Which sort does c++ use?

1017


What are signs of manipulation?

1065