SE450: Java Self-Assessment [11/41] ![]() ![]() ![]() |
Develop a linked list class.
Develop a class hierarchy of shapes, which includes:
Shape Closed Shape Circle, Rectangle, ... Open Shape Line, Curve, ... Text
Each class supports a method toString that returns the attributes of the shape as a string.
Instantiate a List of shapes. Use the java.util.List
interface and a List
implementation from the JDK.
Insert several different
shapes into the List, and print out the contents of the List
of shapes using the appropriate List
iteration methods
that are part of the Java Collections classes.
If you have: