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
What is inheritance and how many types of inheritance?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What is abstract class in oop?
What is destructor give example?
Can an interface inherit a class?
What is the diamond problem in inheritance?
What are oops functions?
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.
What is overloading in oop?
What is static modifier?
Get me an image implementation program.
Which is better struts or spring?
What is class in oop with example?
What is object-oriented programming? Webopedia definition
What is for loop and its syntax?