what is virtual function in c++

Answer Posted / hemin_sdek@yahoo.com

IT'S OVERRIDING A BASE CLASS DEFINITION AT RUN TIME.MEMBER
FUNCTION IN BASE CLASS AND DERIVED CLASS IS SAME. NORMALLY
IT INVOKE THE BASE CLASS DEFINITION IF BOTH FUNCTION NAME
IS SAME.BUT WE NEED TO ACCESS THE DERIVED CLASS DEFINITION
WE GO FOR VIRTUAL FUNCTION

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you answer polymorphism?

577


What exactly is polymorphism?

604


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1835


can inline function declare in private part of class?

3657


What is abstraction oop?

623






What does and I oop mean?

614


Why is object oriented programming so hard?

616


Whats oop mean?

588


What does it mean when someone says I oop?

583


Explain the advantages of inheritance.

670


What is a null tree?

630


What does no cap mean?

590


Please send ford technologies placement paper 2 my mail id

1652


What is pure oop?

597


What is interface? When and where is it used?

1664