Section 9.5 Constructors in Subclasses

• The first task of a subclass constructor is to call its direct superclass’s constructor (p. 378) to ensure that the instance variables inherited from the superclass are initialized.

Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.