Ellipse is a composite -- i.e. it is made up of component(s). In it's case, it has a "Point" child.
Ellipse.java is started for you.
Add These Private Ivars:
Find tag "//CODE HERE (ivars)"
An ivar "center" of type "Point"
An ivar "a" of type "int"
An ivar "b" of type "int"
Code:
Find all methods with tag "//CODE HERE".
Finish those methods
To activate Ellipse (rather than Circle) you can tweak the constructor in "OuterSpace" (uncomment the Ellipse line). Then fire up the graphics system again.
Introduction To Objects With Java
(Chapter 501 - Composition)