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 inheritance and how many types of inheritance?

803


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6347


What is abstract class in oop?

734


What is destructor give example?

803


Can an interface inherit a class?

767


What is the diamond problem in inheritance?

804


What are oops functions?

775


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

1951


What is overloading in oop?

755


What is static modifier?

827


Get me an image implementation program.

1724


Which is better struts or spring?

798


What is class in oop with example?

815


What is object-oriented programming? Webopedia definition

940


What is for loop and its syntax?

786