When is the constructor invoked? Can a class have multiple constructors?
The constructor of a class is invoked every time an object is created with new keyword.
a class can have multiple constructors with different parameters. Which constructor gets used for object creation depends on the arguments passed while creating the objects.