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 the difference between virtual functions and pure virtual functions?



What is the difference between virtual functions and pure virtual functions?..

Answer / hrpynux@gmail.com

A virtual function is a member function of base class which can be redefined by derived class. A pure virtual function is a member function of base class whose only declaration is provided in base class and should be defined in derived class otherwise derived class also becomes abstract.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ Interview Questions

How do you write a function that can reverse a linked-list in C++?

0 Answers   IBS,


How many times will this loop execute? Explain your answer.

0 Answers  


What is a memory leak in C++?

0 Answers   Agilent,


In C++ what do you mean by Inheritance?

0 Answers   Accenture,


Write a C++ program to print strings in reverse order.

0 Answers   Amdocs,


What does it mean to take the address of a reference?

0 Answers   Amazon,


In C++ what is a vtable and how does it work?

0 Answers   Agilent,


Declare a pointer to a function that takes a char pointer as argument and returns a void pointer.

0 Answers   Alter,


What are the advantages and disadvantages of B-star trees over Binary trees?

0 Answers  


What are "pure virtual" functions?

0 Answers   Adobe, Alter, iNautix,


What is an abstract class in C++

0 Answers   SwanSoft Technologies,


Without using third variable write a code to swap two numbers.

0 Answers   Accenture,


Categories