Description: (the Triangle class) Design a class name Triangle that extends GeometricObject.The class contains:
*Three double data fields named side1,side2,and side3 with default values 1.0 to denote three sides of the triangle.
*A no-arg constructor that creates a default triangle.
*A constructor that creates a triangle with the specified side1,side2, and side3.
*The accessor methods for all three data fields.
*A method named getArea() that return the area of this triangle.
*A method named getPerimeter() that return the perimeter of this triangle.
*A method named getString() that return a string description for the triangle.
The class names for this assignment should be Triangle, GeometricObject and TriangleTest for the test program.
To Search:
File list (Check if you may need any files):
Triange\GeometricObject.java
.......\TestTriangle.java
.......\Triangle.java
Triange