Specifications

Sun Services
Java™ Programming Language
Module 6, slide 28 of 43
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Invoking Parent Class Constructors
To invoke a parent constructor, you must place a call to
super in the first line of the constructor.
You can call a specific parent constructor by the
arguments that you use in the call to super.
If no this or super call is used in a constructor, then
the compiler adds an implicit call to super() that calls
the parent no argument constructor (which could be
the default constructor).
If the parent class defines constructors, but does not
provide a no-argument constructor, then a compiler
error message is issued.