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 virtual function?

Answer Posted / manav sharma

It allows one to write generalized code that works with the
base class pointer which can dynamically point to the
derieved class objects. Virtual function allows you to
implement runtime polymorphism. It allows the function call
to be binded with function definition as late as runtime.

Also read: concept of VPTR and VTABLE from Thinking in C++

Is This Answer Correct ?    56 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a mixin and inheritance?

992


What is methods in oop?

981


What is the purpose of enum?

1011


Can we define a class within the interface?

1044


How to use CMutex, CSemaphore in VC++ MFC

4786


What is coupling in oop?

1035


How oops is better than procedural?

1101


Why is abstraction used?

1093


What is ambiguity in inheritance?

1120


explain sub-type and sub class? atleast u have differ it into 4 points?

2317


How many human genes are polymorphic?

1067


What is destructor in oop?

1034


What is difference between inheritance and polymorphism?

1029


Describe these concepts: Polymorphism, Inheritance and Abstraction.

1199


Is this job good for future? can do this job post grduate student?

2165