cs176:501b:triangle_inheritance_example
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.
cs176/501b/triangle_inheritance_example.txt · Last modified: 2017/03/24 13:40 by jchung