Java Constructor

Constructor A constructor is a special member (method) of a class that is used to initialize the state of an object. It provides the values to the data members at the time of object creation which is why it is known as a constructor. Characteristics of the constructor A constructor has the same name as … Read more