# Declaration

*noun*

say it: **“dek-luh-RAY-shun”** **/ˌdɛkləˈreɪʃən/**

A statement that introduces a new name, such as a variable with its type.

## 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;
    }
}
```

## In a sentence

- “The **declaration** int score; tells C# that score holds whole numbers.”

Level: Novice · [More C# terms at this level](https://www.ask-codey.com/glossary?category=c-sharp&level=1)

Updated: November 9, 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
