The MyPolygon Class
The MyPolygon class contains those methods common to all polygons: class MyPolygon extends Polygon { public void draw(…) {…} public void fill(…) {…} public void addPoint(…) {…} }
Any subclass of MyPolygon inherits all of these methods