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...


Why pure virtual functions are used if they don't have implementation / When does a pure virtual function become useful?



Why pure virtual functions are used if they don't have implementation / When does a pure virtua..

Answer / hrpynux@gmail.com

A pure virtual function makes it so the base class can not be instantiated, and the derived classes are forced to define these functions before they can be instantiated. This helps ensure the derived classes do not forget to redefine functions that the base class was expecting them to.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Can member functions be private?

0 Answers  


What is a float in c++?

0 Answers  


Which format specifier is used for printing a pointer value?

0 Answers  


What is the difference between structures and unions?

0 Answers  


What is the header file for setw?

0 Answers  


How can I improve my c++ skills?

0 Answers  


What is the purpose of templates in c++?

0 Answers  


What is a pdb file?

0 Answers  


Is c++ the most powerful language?

0 Answers  


What is "mutable" keyword?

2 Answers   Infosys, Teradata,


Do class declarations end with a semicolon? Do class method definitions?

0 Answers  


What is a storage class?

0 Answers  


Categories