WHAT IS THE DIFFERENT BETWEEN OVERRIDING AND OVERLOADING A
METHOD IN JAVA?
|Institute||Ahsanullah Institute of Information and Communication Technology 2012|
Overriding a method removes its original behavior, and let a new behavior to be rewritten (we can, however, called the behavior of the parent method with super.methodName() and re-use it if required. Overloading a method happens when the name for two different methods is the same, but the parameters are different.