Explanation: Constructors are the member functions which are called automatically whenever an object is created . It is a mandatory functions to be called for an object to be created as this helps in initializing the object to a legal initial value for the class. 2.