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

What is the C-style character string?

1072


What is enum class in c++?

1176


What are the extraction and insertion operators in c++?

946


Ask to write virtual base class code?

2694


What you know about structures in C++?

1004


Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .

1087


How is new() different from malloc()?

1059


What are the various oops concepts in c++?

966


How to defines the function in c++?

1048


Explain selection sorting. Also write an example.

980


What is the use of dot in c++?

1023


Give 10 points of differences between C & C++.

1082


What happens if a pointer is deleted twice?

1223


How can you link a c program with a c function?

998


How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?

983