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 / guest

The abstract class whose pure virtual method has to be
implemented by all the classes which derive on these.
Otherwise it would result in a compilation error.
This construct should be used when one wants to ensure that
all the derived classes implement the method defined as
pure virtual in base class.

Is This Answer Correct ?    77 Yes 44 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is constant in c++ with example?

1206


When do we run a shell in the unix system? How will you tell which shell you are running?

1025


What are inline functions? What is the syntax for defining an inline function?

1212


What is a static member?

1092


What are the differences between malloc() and calloc()?

1244


What do you mean by volatile and mutable keywords used in c++?

1043


What is linked list in c++?

1176


What are the advantages of inheritance in c++?

1141


What is istream and ostream in c++?

1203


What is object oriented programming (oop)?

1173


What are 2 ways of exporting a function from a dll?

1274


How does c++ structure differ from c++ class?

1185


How long does it take to get good at leetcode?

1239


What is meant by entry controlled loop?

1181


What do you mean by storage classes?

1657