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 / guest

only subclasses of X may create X objects.
i.e and B

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

1088


How do I exit turbo c++?

1077


What parameter does the constructor to an ofstream object take?

1060


Eplain extern keyword?

1032


Do vectors start at 0?

992


What is the use of typedef?

1102


How we can differentiate between a pre and post increment operators during overloading?

1108


What's the hardest coding language?

1005


What does std :: flush do?

1141


What are virtual functions in c++?

1187


What is command line arguments in C++? What are its uses? Where we have to use this?

1278


Write about the stack unwinding?

1066


Explain the register storage classes in c++.

1188


What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0

963


Explain the isa and hasa class relationships.

1040