Introduction
A constructor is a special function inside a class that runs automatically when you create a new object. It helps set up the object with initial values.
When you want to create a new object with specific starting information.
When you need to set up properties for an object right away.
When you want to make sure every object of a class starts with some default values.
When you want to pass data to an object as you create it.