Java Reference
In-Depth Information
To prevent a subclass from having access to a superclass member, declare that mem-
ber as
private
.
The
super
keyword has two forms. The first is used to call a superclass constructor.
The general form of this usage is
super (
param-list
);
The second form of
super
is used to access a superclass member. It has this general
form:
super.
member
complete their execution when a
Gamma
object is instantiated?