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...

How to avoid a class from instantiation?

Answer Posted / vinay bondade

Have a Pure Virtual function in the class. This will not
allow to create an object of the class and hence cannot be
instatiated. But its a different thing to inherit the class
and give definition to Pure Virtual function, But the class
alone cannot be instantiated.The class hence,is also called
Abstract Base class.

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the various compound assignment operators in c++?

985


Const char *p , char const *p What is the difference between the above two?

1217


What is the best c c++ compiler for windows?

1060


What is function overriding in c++?

1071


Can we make copy constructor private in c++?

1058


What is setf in c++?

1090


what do you mean by volatile variable?

1056


Is c++ built on c?

1035


How do I get good at c++ programming?

1172


Can a function take variable length arguments, if yes, how?

1016


What is #include iostream h in c++?

1163


State the difference between pre and post increment/decrement operations.

1081


Explain the uses oof nested class?

1140


Describe public access specifiers?

1111


What are the four main data types?

1085