Method overloading means having two or more methods with the same name but different signatures in the same scope. Compiler automatically select the most appropriate method based on the parameter supplied.
public class multiplynumber { public int multiply(int x, int y) { return x * y; }
public int multiply(int x, int y, int z) { return x*y*z; } }
Liked By
Write Answer
What is Method Overloading?
Join MindStick Community
You have need login or register for voting of answers or question.
Pushpendra Singh
01-Nov-2010