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 are the rules for naming an identifier?

1013


What is c++ mutable?

1080


Explain about vectors in c ++?

969


Which is not a valid keyword a) public b) protected c) guarded

1192


What is the difference between global variables and static varables?

1069


What is the use of endl in c++ give an example?

1104


How do you declare A pointer to function which receives an int pointer and returns a float pointer

1118


what are the iterator and generic algorithms.

2094


Can you please explain the difference between overloading and overriding?

1025


Who discovered c++?

984


which operator is used for performing an exponential operation a) > b) ^ c) none

986


int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}

1208


what is a class? Explain with an example.

1100


Where and why do I have to put the "template" and "typename" keywords?

978


What are enumerations?

1050