Question: Program in Java and compile in CMD Design a Triangle class that extends the abstract GeometricObject class. Draw the UML diagram for the classes Triangle

Program in Java and compile in CMDProgram in Java and compile in CMD Design a Triangle class thatextends the abstract GeometricObject class. Draw the UML diagram for the classes

Design a Triangle class that extends the abstract GeometricObject class. Draw the UML diagram for the classes Triangle and GeometricObject and then implement the Triangle class. Write a test program that prompts the user to enter three sides of the triangle, a color, and a Boolean value to indicate whether the triangle is filled. The program should create a Triangle object with these sides and set the color and filled properties using the input. The program should display the area, perimeter, color, and true or false to indicate whether it is filled or not. II GeometricObject.java: The abstract GeometricObject clas:s public abstract class GeometricObject{\ private String color "white

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!