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

What is new keyword in oops?

596


Where is pseudocode used?

569


What is polymorphism programming?

607


What is the diamond problem in inheritance?

585


Why is abstraction needed?

571






Plese get me a perfect C++ program for railway/airway reservation with all details.

3433


What is difference between inheritance and polymorphism?

577


can inline function declare in private part of class?

3666


Can we have inheritance without polymorphism?

621


What is polymorphism and why is it important?

562


What are the benefits of polymorphism?

628


Why multiple inheritance is not possible?

606


which feature are not hold visual basic of oop?

1727


Can we create object of abstract class?

583


What are properties in oop?

613