Polymorphism - Methods Overriding v/s Hiding

Published: 06 December 2023
on channel: ProgRank
287
7

In method overriding, when base class reference variable pointing to the object of the derived class, then it will call the overridden method in the derived class. In the method hiding, when base class reference variable pointing to the object of the derived class, then it will call the hidden method in the base class.

#oop #java #interviewquestions


Watch video Polymorphism - Methods Overriding v/s Hiding online without registration, duration hours minute second in high quality. This video was added by user ProgRank 06 December 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 287 once and liked it 7 people.