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

Is c++ still being used?

968


Is set c++?

953


What is function prototyping?

1041


What do you mean by stack unwinding in c++?

1175


Does std endl flush?

976


What is the syntax for a for loop?

1068


What is the use of class in c++?

1003


What is object file? How can you access object file?

1121


What is null and void pointer?

996


What are c++ manipulators?

1004


What is c++ similar to?

1134


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

2526


Is it possible to write a c++ template to check for a function's existence?

955


What is flush programming?

951


Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..

3789