what type of method is called when an object is created?
Classes can have special methods called constructors. A constructor is a method that is automatically called when an object is created. Constructors are used to perform operations at the time an object is created. Constructors typically initialize instance fields and perform other object initialization tasks.