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

Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

2424


Is empty stack c++?

938


How do you sort a sort function in c++ to sort in descending order?

939


Difference between pointer to constant vs. Pointer constant

1056


What is runtime errors c++?

1065


What is vector string in c++?

1034


What are punctuators in c++?

1088


Differentiate between a copy constructor and an overloaded assignment operator.

1017


What is virtual destructor ans explain its use?

1071


Why cstdlib is used in c++?

995


In a function declaration what does extern means?

982


How do you invoke a base member function from a derived class in which you’ve overridden that function?

1063


What is c++ used for in games?

1099


Can malloc be used in c++?

1025


How do you compile the source code with your compiler?

1001