Question: Extend the Rectangle class as shown in the following UML diagram. Write a Test class to verify your implementation. note:please use eclipse and the code

 Extend the Rectangle class as shown in the following UML diagram.

Extend the Rectangle class as shown in the following UML diagram. Write a Test class to verify your implementation.

note:please use eclipse and the code in java

Shape -color: String -location : Point +Shape(String) +getX(): double +getY(): double +setLocation(double double): void +getColor(): String +setColor(String): void +Print) : void Circle tradius: double +setCenter(double double): void +getCenter (): Point setColor (String):void +getColor(): String +Print(): void +Circle(double) Rectangle +width: double theight : double +getCornerLeftLow(): Point +getCornerLeftUpp(): Point +getCornerRightLow(): Point +getCornerRightUpp(): Point +setLocation(double double): void +setColor(String): void +getColor(): String +getArea(): double +Print(): void +Rectangle(double double) Point -x: double -y: double +getX(): double +sex(0 : void +getY(): double +setY): void +Print(): void Square +setLength(double):void +setLocation double double):void +setColor(String):void +getColor): String +getCircumferencel) : double +Print) : void +Square(double)

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!