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

What are the main features of c++?

981


How would you find out if a linked-list is a cycle or not?

970


What is the meaning of string in c++?

1029


write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;

1965


Explain terminate() and unexpected() function?

1053


What is the use of namespace std in C++?

1033


What is the difference between public, private, and protected access?

1026


What is using namespace std in c++?

1111


What is the best way to declare and define global variables?

1253


Is there finally in c++?

1045


Can you please explain the difference between overloading and overriding?

1046


What flag means?

906


What is microsoft c++ redistributable 2013?

1050


How does the copy constructor differ from the assignment operator (=)?

1107


Describe delete operator?

1049