Method Parameter

A named input declared by a method.

What is Method Parameter in C#?

Method Parameter — A named input declared by a method.

class OrderCalculator
{
    int Total(int price, int quantity = 1)
    {
        return price * quantity;
    }
}

Level: Apprentice · More C# terms at this level

Updated

In other subjects