Re: Need some information regarding the work of a constructur .
Posted By:
Michael_Herrmann
Posted On:
Wednesday, June 6, 2001 02:28 AM
I always thought that this behaviour has a more technical reason: Java always calls the constructor of the super-class to reserve the memory needed for all the fields of the instance. Of course this has to be done before any instructions can make changes to the fields of the instance. So if you don't make an explicit call to the constructor of the super-class in the first line, Java makes a call of the standard-constructor to reserve the memory for the fields declared in the super-class.