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...

What is Pure Virtual Function? Why and when it is used ?

Answer Posted / prajesh gupta (ferozepur, punj

Pure Virtual Functions:
1. "Do nothing Function"
virtual void display() = 0;
2. declared in base class.
3. class containing a pure virtual function does not
declare an object of its own. (That class is known as
ABSTRACT CLASS)

Advantages Of Using:

1. To inherit the properties of the derived class.
2. To create a base pointer required for runtime
poymorphism.
3. To avoid overwriting of member function.

Is This Answer Correct ?    37 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the operation of overloading of an assignment operator.

1168


What is c++ best used for?

1064


Difference between a homogeneous and a heterogeneous container

1139


Is python written in c or c++?

1139


What is meaning of in c++?

1211


What does the ios::ate argument do?

1185


What does new do in c++?

1068


Is c++ primer good for beginners?

1040


Where the memory to the static variables is allocated?

1055


Is it possible for the objects to read and write themselves?

1097


How long will it take to learn programming?

1056


Which software is used to run c++ program?

999


What is decltype c++?

994


What is the difference between multiple and multilevel inheritance in c++?

1128


Why do we use classes in programming?

1032