Method Overloading
Defining methods with the same name but different parameter lists.
What is Method Overloading in C#?
Method Overloading — Defining methods with the same name but different parameter lists.
class PriceFormatter
{
string Format(int price)
{
return quot;${price}";
}
string Format(decimal price)
{
return quot;${price:F2}";
}
}
Level: Apprentice · More C# terms at this level
Updated