Specifications

Sun Services
Java™ Programming Language
Module 6, slide 27 of 43
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Constructors Are Not Inherited
A subclass inherits all methods and variables from the
superclass (parent class).
A subclass does not inherit the constructor from the
superclass.
Two ways to include a constructor are:
Use the default constructor.
Write one or more explicit constructors.