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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

In what situations do you have to use initialization list rather than assignment in constructors?

1065


Explain the difference between new() and malloc() in c++?

1132


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

1264


Difference between function overloading and function overriding.

1064


What is difference between data abstraction and encapsulation?

1085


Describe linkages and types of linkages?

998


What is public, protected, private in c++?

1154


Explain the isa and hasa class relationships.

1038


What do you mean by translation unit?

1097


Difference between delete and free.

1079


Can a constructor be private?

1072


Why do we use string in c++?

942


How does stack look in function calls? When does stack overflow? What can you do to remedy it?

979


Execute the qsort () in c/sort() in c++ library or your own custom sort which will sort any type of data on user defined criteria.

1014


What is constructor and destructor in c++?

1117