This method is automatically called when an object is created. The constructor method always has the same identifier as the class in which it is defined. The constructor is used to initialize the object and place it in a valid state (e.g., setting the values of member variables).