4
Reply

What is Method overloading?

siva

siva

19y
4.1k
0
Reply

    Methods with same name and different siganture's are called as overloading

    19y
    0

    Methos Overloading is when you have the same name of the method but different signature.
    The signature becomes different when the number of the parameters are different or methods have different types or different number of parameters.
    For example:
    public void method1(string param1,...)
    public void method1(int param2,string param1, ...)

    Method overloading occurs when a class contains two methods with the same name, but different signatures.

    Method overloading is when u add keyword like public or private to codes.