Function Overloading in Java

Function Overloading in Java


Function Overloading In Java Notes

Function/Method Overloading is the Polymorphic behaviour of OOP ( Objected Oriented Programming). When several functions with same name but different function signature are defined, the process is said to be function overloading.

The functions defined herewith are referred to as overloaded functions.

The example below shows an overloaded function named func.

   public void func(int a)
    {
    //function body
    }
    public void func(float a)
    {
    //function body
    }
    public void func(String s1, String s2)
    {
    //function body
    }