The Triangle Class

Open the InheritTriangle project in BlueJ.

Make the Triangle class extend the GeometricObject1 class. Modify the Triangle class' toString() method to display the Triangle's area, perimeter, color and whether it is filled or not.

Write a test program testTriangle.java that creates a Triangle object with sides 1, 1.5, 1, color yellow and filled status true, and display the Triangle object's data using the toString() method.