Applet Shape Example 2
The source code:
ShapeTester2.java
Shape.java
Rectangle.java
Square.java
Ellipse.java
Circle.java