Answer:
Constructor in the class is the member function that gets into action when any new object gets created in the class ,it gets invoked. It does not have any return type and no void return.
The constructor is used in the class because there is the requirement for the initializing of the new object and then only object can do the functioning in the program.