The constructor is a special method that is called when a new instance of the class (a new object) is created.
The constructor is a special method that is called when a new instance of the class (a new object) is created. Its main purpose is to initialize the attributes of the instance.