Constructor in Java
Constructor is a special method which is used to initialize the state of an object. Constructor is special method because it has following properties: – Automatically called – Constructor name is same as class name – No return type Programmer can’t call constructor explicitly. It is called automatically at the time of creation of object. …