what is virtual function in c++

Answer Posted / indu

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 ?    20 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Whats oop mean?

607


What is solid in oops?

623


If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

948


what are the ways in which a constructors can be called?

1590


How to hide the base class functionality in Inheritance?

652






What is oops in programming?

574


What are objects in oop?

614


Can a destructor be called directly?

613


What is polymorphism what are the different types of polymorphism?

573


Why do we use polymorphism in oops?

593


What is encapsulation process?

597


to find out the minimum of two integer number of two different classes using friend function

1645


What is an example of genetic polymorphism?

657


Why is encapsulation used?

585


What is polymorphism explain its types?

696