Component class
The purpose of an abstract class is
to be a parent to several child classes that should be
grouped together.
Common characteristics are placed in the abstract parent class.
The purpose of the abstract Component class
is to act as a parent to several AWT components.
Some of these you know already, some are new:
Objects constructed from all these Component classes
have common characteristics:
they can be placed inside containers, they can be displayed
on the monitor,
they generate events,
the register event listeners,
and so on.
The chart shows the the TextComponent class
has children TextField (which you have seen before)
and TextArea (which you have not seen, yet).
A abstract parent can have an abstract child.
In the chart,
the Container class is an abstract child of
Component.
|