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 is one dimensional array in c++?

1103


What is c++ good for?

1063


Can non-public members of another instance of the class be retrieved by the method of the same class?

1082


What is a dynamic binding in c++?

958


What is the most powerful coding language?

1060


Is c++ a good first language to learn?

1070


What are the four partitions in which c++ compiler divides the ram?

1236


What do you understand by zombie objects in c++?

1102


What is pointer in c++ with example?

1073


What is a constant? Explain with an example.

1014


How many namespaces are there in c++?

1073


What is the full form nasa?

1097


Is recursion allowed in inline functions?

1083


What is a syntax in c++?

1161


What is the main purpose of c++?

1065