Java - Part 257 - Method Hiding

Опубликовано: 29 Сентябрь 2024
на канале: QAFox
4,345
127

View Notes Here - http://www.evernote.com/l/AbHu42SAozF...

In this session, I have explained and practically demonstrated - how to implement Method Hiding in Java.

As part of this session, the below questions were also answered?

* What is Method hiding?
* Can we override static methods with non-static methods?
* Can we override non-static methods with static methods?
* Can we override static methods with static methods?
* Can we override non-static methods with static methods?
* What is the difference between Method Overriding and Method Hiding?
* Method Hiding falls into Runtime polymorphism or Compile Time Polymorphism?
* Method Hiding is based on Reference type or Object type?