# What is a Constructor

A constructor gives a new object the starting values it needs, and \`this\` tells the object's own variable apart from a parameter with the same name.

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

- Category: Java
- Level: Apprentice
- Tags: java, OOP
- Updated: November 3, 2026

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