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 the header file for setw?

1135


Distinguish between a # include and #define.

1152


Define a pointer to a data member of the type pointer to pointer?

992


What is the last index number in an array of 100 characters a) 100 b) 99 c) 101

1154


How static variables and local variablesare similar and dissimilar?

1044


What's the hardest coding language?

1004


How can you link a c program with a c function?

1076


Can we get the value of ios format flags?

1141


Why c++ is better than c language?

1020


What is size of string in c++?

987


Can we overload operator in c++?

1042


What is a storage class?

1280


What does new in c++ do?

1027


Define macro.

1096


How the keyword struct is different from the keyword class in c++?

1043