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()
{
}
}
No comments:
Post a Comment