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 is the basic structure of c++ program?

1098


What is a linked list in c++?

1047


What is a responder chain?

1054


Write a C++ Program to check whether a number is prime number or not?

1127


What is #include cstdlib in c++?

1178


Which bit wise operator is suitable for checking whether a particular bit is on or off?

1025


Explain how to initialize a const data member.

1123


Write a code/algo to find the frequency of each element in an array?

1113


What is using namespace std in c++?

1156


what is VOID?

1061


What is data abstraction? How is it different from data encapsulation?

1001


What are the two types of polymorphism?

1131


What do you mean by global variables?

1074


What is std :: endl?

1028


What is stl containers in c++?

1047