InterviewSolution
Saved Bookmarks
| 1. |
What Is The Difference Between Method Overloading And Overriding In Java? |
|
Answer» METHOD overloading happens during compile TIME within a class whereas Method Overriding happens between two classes that have IS-A i.e. inheritance relationship. For method overriding we require parent and child classes whereas for method overloading a single class is enough.
Method overloading happens during compile time within a class whereas Method Overriding happens between two classes that have IS-A i.e. inheritance relationship. For method overriding we require parent and child classes whereas for method overloading a single class is enough. |
|