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 an associative container in c++?

1072


Does c++ have a hash table?

1001


What happens when the extern "c" char func (char*,waste) executes?

1089


what are the iterator and generic algorithms.

2171


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

1037


What does it mean to declare a member function as virtual?

1077


What are the uses of c++ in the real world?

1041


What is a manipulative person?

1021


Is nan a c++?

1156


Write a struct time where integer m, h, s are its members?

964


Can you overload the operator+ for short integers?

1045


What is difference between array and vector in c++?

1035


What is the difference between the functions rand(), random(), srand() and randomize()?

1292


Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?

1267


Difference between overloaded functions and overridden functions

1061