Meaning: Wrote came back method by the name of that was same to some class.
The aim: facilitated the use of method with fungsionalitas that was similar.
Overloading Role:
Mode access overriding method must be the same or wider than overriden method.
Subclass only might override method superclass one time, might not be more than one method in the same class that was same precisely.
Overriding method might not throw checked exceptions that not it was declared by overridden method.
The Rule to declare Overloading Method
- The name method must same
- List of the parameter must be different
- Return type might be the same, also might be different
Example of Overloading
public class Coloring extends Model {
public void Picture(String color, int t1, int t2, int3) {
…
}
public void Picture(String color, int t1, int t2, int3, int t4) {
…
}
…
}













Yach, I need tutorial like this, give me another Java tutorial…
@Sabahan
Yes, I will try to always post the another Tutorial like this. Thank you for visiting
This tutorial reminded me about programming really where my time studied.
Best Regard
Sumintar.com
@Petani Coding
Yach, of course you have more experience than me, so let go to share
Thanks for visiting