# Constant

A named value intended not to change after initialization.

## What is **Constant** in C#?

**Constant** — A named value intended not to change after initialization.

```csharp
class Store
{
    static int locationCount = 3;
    const int maxItems = 100;
    readonly string name;

    Store(string name)
    {
        this.name = name;
    }
}
```

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

- [Constant in Java](https://www.ask-codey.com/glossary/constant-java)

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