Question: please solve it as soon as java please fast Write a class named FinalExam that extends abstract GeometricObject and implements the Comparable and Cloneable interfaces,
please solve it as soon as


java
please fast
Write a class named FinalExam that extends abstract GeometricObject and implements the Comparable and Cloneable interfaces, the underneath UML describe the data members and methods. Both getArea () and getPerimeter() are abstract. Assume that FinalExam is a shape that has all eight sides are of equal size. The area can be computed using the following formula: area =( 2 + 4 / 2) * side * side GeometricObject -color: String -filled: boolean -dateCreated: java.util.Date #GeometricObject #GeometricObject(color: string, filled: boolean) +getColor(): String +setColor(color: String): void +isFilled(): boolean setFilled(filled: boolean): void +getDateCreated(): java.util.Date +toString(): String +getArea(): double getPerimeter(): double GeometricObject -color: String -filled: boolean -dateCreated: java.util.Date #GeometricObject() #GeometricObject(color: string, filled: boolean) +getColor(): String +setColor(color: String): void +isFilled(): boolean +setFilled(filled: boolean): void +getDateCreated(): java.util.Date +toString(): String +getArea(): double +getPerimeter(): double Write testDriver that read Objects from file and store them in arrayList. Sort the Objects in ascending order according to Perimeter of this shape. 1 A B I o $$
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
