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

State the difference between delete and delete[].

1165


What are the unique features of C++.

1143


Is c or c++ more useful?

1099


What is linked list in c++?

1176


Why is c++ difficult?

1110


What are the differences between malloc() and calloc()?

1244


What is the benefit of encapsulation?

1124


What is the basic structure of c++ program?

1153


What is using namespace std in cpp?

1246


Can we sort map in c++?

1079


Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).

1158


What is the latest c++ standard?

1191


Which sort does c++ use?

1077


What is the v-ptr?

1214


Is ca high or low level language?

1132