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