# Method Parameter

A named input declared by a method.

## What is **Method Parameter** in C#?

**Method Parameter** — A named input declared by a method.

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

Level: Apprentice · [More C# terms at this level](https://www.ask-codey.com/glossary/subjects/c-sharp/apprentice)

Updated: September 27, 2026

## In other subjects

- [Method Parameter in Java](https://www.ask-codey.com/glossary/method-parameter)

Source: https://www.ask-codey.com/glossary/method-parameter-c-sharp
