# Default Constructor

A no-argument constructor supplied by the compiler when a class declares none.

## What is **Default Constructor** in C#?

**Default Constructor** — A no-argument constructor supplied by the compiler when a class declares none.

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

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

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

Updated: September 27, 2026

## In other subjects

- [Default Constructor in Java](https://www.ask-codey.com/glossary/default-constructor)

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