1 | The Triangle class class Triangle extends Polygon { ... } is a subclass of the Polygon class |
2 | An instance of Triangle is created with new: Triangle triangle = new Triangle(...); |
3 | The Triangle constructor on the right is defined in the Triangle class above |