What is a Constructor?
Constructor is used to define an initial state for the object you are instantiating. As constructor is just a special method, constructor can be overloaded. A constructor signature consists of the constructor name and the types of parameters. |