user40666
0
Q:

same method name with different arguments

class DisplayOverloading
{
    public void disp(char c)
    {
         System.out.println(c);
    }
    public void disp(char c, int num)  
    {
         System.out.println(c + " "+num);
    }
//same method name with different arguments
}
0

New to Communities?

Join the community