Method Overloading : Method Overload « Class « C# / CSharp Tutorial






  1. In C#, two or more methods within the same class can share the same name, as long as their parameter declarations are different.
  2. These methods are said to be overloaded
  3. The process is referred to as method overloading.
  4. Method overloading is one of the ways to implement polymorphism.
  5. It is not sufficient for two methods to differ only in their return types.
  6. The methods must differ in the types or number of their parameters.








7.8.Method Overload
7.8.1.Method Overloading
7.8.2.Demonstrate method overloading: different number of parameters
7.8.3.Automatic type conversions can affect overloaded method resolution: int, double
7.8.4.Automatic type conversions can affect overloaded method resolution: byte
7.8.5.Overloaded constructors
7.8.6.Overriding a method.