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

make the class Abstract it will not be instantiated
and the pure virtual function is used to avoid the base call
function to be get called if we make a function as virtual
only a derived class function will get called

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is prototype for that c string function?

1189


Why cout is used in c++?

1075


What is rtti in c++?

1182


What is the exit function in c++?

1024


What is a c++ object?

1251


What is the precedence when there is a global variable and a local variable in the program with the same name?

1173


What do you mean by storage classes?

1653


What is abstraction c++?

1055


Which is the best c++ compiler for beginners?

1156


Can a program run without main?

1328


Why is polymorphism useful?

1108


Which function cannot be overloaded c++?

1163


Differences between private, protected and public and give examples.

1119


What is object oriented programming (oop)?

1169


What is struct c++?

1050