# What is a Constructor?

A constructor runs when an object is created and gives it the starting values it needs; use this to tell a field from a parameter of the same name.

![Cheat sheet: What is a Constructor?](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/af4c703f62104a44b70054c566ef2864.webp)

- Category: C#
- Level: Apprentice
- Tags: Constructor (c-sharp), c-sharp, Default Constructor (c-sharp), OOP, this (c-sharp)
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/working-with-objects-in-csharp-what-is-a-constructor-cheat-sheet
