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

Explain terminate() and unexpected() function?

0 Answers  


What do you know about friend class and friend function?

1 Answers  


When should we use container classes instead of arrays?

0 Answers  


What is the use of endl?

0 Answers  


What are signs of manipulation?

0 Answers  


What is a multiset c++?

0 Answers  


What is decltype c++?

0 Answers  


Why is swift so fast?

0 Answers  


Is python written in c or c++?

0 Answers  


What is an explicit constructor?

1 Answers  


write a program that a 5 digit number and calculates 2 power that number and prints it.

2 Answers   Vimukti Technologies,


What is struct c++?

0 Answers  


Categories