Java Advance

Defualt constructor and User defined constructor

views

10:39
What is the constructor: 1. Zero argument constructor. 2. A constructor withspecific number ofarguments. 3. Purpose of theconstructor. 4. Assigns defaultvalues to the newlycreated objects. 5. The constructor assigns the user-specified values to the instance variables of objects Who writes the code of the constructor.