# Declaration

A statement that introduces a variable, method, class, or other named item.

## What is **Declaration** in C#?

**Declaration** — A statement that introduces a variable, method, class, or other named item.

```csharp
class Game
{
    void UpdateScore()
    {
        int score = 10;
        score = score + 5;
    }
}
```

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

Updated: September 27, 2026

## In other subjects

- [Declaration in CSS](https://www.ask-codey.com/glossary/declaration-css)
- [Declaration in Java](https://www.ask-codey.com/glossary/declaration)

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