A Triangle Class
The Triangle class class Triangle extends Polygon { … }is a subclass of the Polygon class
An instance of Triangle is created with new: Triangle triangle = new Triangle(…);
The Triangle constructor on the right is defined in the Triangle class above