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 X
{
private:
int a;
protected:
X(){cout<<"X constructor was called"<<endl;}
~X(){cout<<"X destructor was called"<<endl}
};
Referring to the code above, which one of the following
statements regarding "X" is TRUE?
a) X is an abstract class.
b) Only subclasses of X may create X objects.
c) Instances of X cannot be created.
d) X objects can only be created using the default copy
constructor.
e) Only friends can create instances of X objects.

Answer Posted / shakti singh khinchi

Only subclasses of X may create X objects.
means (b) is the only answer.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the most useful programming language?

1054


What is the default width for ouputting a long integer using the insertion operator?

1248


Difference between declaration and definition of a variable.

1176


What is flush programming?

1024


If dog is a friend of boy and boy is a friend of house, is dog a friend of house?

1015


Carry out conversion of one object of user-defined type to another?

1051


What are register variables?

1156


what is the use of void main() in C++ language?

1125


How can a struct in c++ differs from a struct in c?

1049


What is a stack c++?

1018


Define 'std'.

1182


What are the c++ access specifiers?

1428


Explain the isa and hasa class relationships. How would you implement each?

1133


What are vectors used for in c++?

1079


What does override mean in c++?

1070