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 are c++ redistributables?

981


Describe delete operator?

1041


What is the extraction operator and what does it do?

1033


How much do c++ programmers make?

1058


What are the uses of typedef in a program?

1033


Write a Program for read a line from file from location N1 to N2 using command line arguments. Eg:exe 10 20 a.c

1232


Define stacks. Provide an example where they are useful.

952


What is ios flag in c++?

1130


Explain abstraction.

1035


On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?

1071


What is c++ best used for?

1019


What are the types of pointer?

1039


Write a program to find the Fibonacci series recursively.

1026


Can a program run without main?

1165


Write a program which uses Command Line Arguments

1115