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 virtual function overhead, and what is it used
for ? i hope i can get and appropriate answers, thanks a lot....

Answer Posted / d n gavade

We use Virtual function as Dyanamic Polymorphism.
i.e run time we can passed referencr of derived class into
base class pointer and call the derived class method.Thi
sis its benefit.

But Virtual destructor is also needed when we use virtual
constructor other wise it will cause memory leaks.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What polymorphism means?

1003


What is protected in oop?

1013


write a programe to calculate the simple intrest and compund intrest using by function overlading

2133


What are the two different types of polymorphism?

1087


What are the 4 main oop principles?

1171


Which is not an object oriented programming language?

941


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1872


Write a program to sort the number with different sorts in one program ??

2326


Can destructor be overloaded?

979


Why is there no multiple inheritance?

956


hi all..i want to know oops concepts clearly can any1 explain??

2083


what is difference between class template and template class?

2598


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

2259


What is a class in oop?

1048


What is difference between oop and pop?

1104