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 / vadivel

virtual function supports run-time polymorphrism. Ovarhead
is run-time has to create 'virtual' table.

'Derived' class object can be stored in the 'base' class
pointer. Using 'base' class pointer, client can call base
class method but not in the derived class method; if client
wants to call the derived class method then based method
should declare as virtual.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is static in oop?

1119


what is different between oops and c++

2616


What is persistence in oop?

1206


Why do we need oop?

1273


What are the features of oop?

1258


Templates mean

2151


What is class encapsulation?

1144


What is difference between abstraction and encapsulation?

1132


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

2450


What is polymorphism explain its types?

1218


Why interface is used?

1067


what is difference between class template and template class?

2713


Can we define a class within the interface?

1100


Write a program to reverse a string using recursive function?

2409


What is difference between inheritance and polymorphism?

1072