What is the purpose of the constructor method in a class?
It is not required in class declarations.
It initializes the object when an instance is created.
It defines the methods of the class.
It defines the properties of the class.