Check out example codes for "same method name with different arguments". It will help you in understanding the concepts better.

Code Example 1

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
}

Learn ReactJs, React Native from akashmittal.com