Introducing Java Method Overloading Concepts
Method Overloading
Exceeding the size of a method is called Method Overloading.
With method overloading, multiple methods can have the same name with different parameters.
class World {
void countries(int x) {
}
void countries(string y) {
}
|
Method Signature
Method Overloading concept is used to create the same method again and again in the same class. Method Overloading can be done by using or changing parameters. It is called "Method Signature".
Comments
Post a Comment