Overloading In C#

Overloading - When the derived class methods uses the same name, arguments and return type as a method in base class. Function must be differ by the arity (Different number of argument) and datatype.

public class Class : Class1
    {

        public void Method1(int num1)
        {

        }
    }

    public class Class1
    {
        public void Method1()
        {

        }
    }

x

Comments

Popular posts from this blog

SSIS Merge Join - Both inputs of the transformation must contain at least one sorted column, and those columns must have matching metadata SSIS

jsGrid

Add Item to SharePoint List with attachment using client object model