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
Why is oop useful?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
What exactly is polymorphism?
What are the 4 main oop principles?
What is abstract class in oops?
Can a varargs method be overloaded?
Why is static class not inherited?
What is pure oop?
Why oops is important?
Is enum a class?
What are the 4 pillars of oop?
Why is object oriented programming so hard?
What language is oop?
What is a superclass in oop?
what are the different types of qualifier in java?