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 the c++ programming language used for?

1044


What is a dangling pointer in c++?

1134


What is nested class in c++?

959


Write a function to find the nth item from the end of a linked list in a single pass.

980


What happens if a pointer is deleted twice?

1273


Explain the uses of static class data?

1103


Is C++ case sensitive a) False b) Depends on implementation c) True

1075


What is iterator c++?

988


Is there a sort function in c++?

997


Explain queue. How it can be implemented?

1154


Describe private, protected and public?

1079


How to declare a function pointer?

996


Why do we use classes in c++?

1061


What is a storage class used in c++?

1077


What is #include cmath?

1093