A constructor is a method that has the
same name as that of the class to which it belongs. As soon as a new
object is created, a constructor corresponding to the class gets
invoked. Although the user can
explicitly create a constructor, it is created on its own as soon as a
class is created. This is known as the default constructor. Constructors
can be overloaded.