Question: This hierarchy begins with superclass Shape, which is extended by subclass Geometricobject- is a shape. Also, Geometricobject is a Comparable (interface) object. The third level

 This hierarchy begins with superclass Shape, which is extended by subclassGeometricobject- is a shape. Also, Geometricobject is a Comparable (interface) object. Thethird level of this hierarchy contains specific types of Circle and Rectangle.As in the below figure, we can follow the arrows from thebottom of the diagram to the topmost superclass in this class hierarchy

This hierarchy begins with superclass Shape, which is extended by subclass Geometricobject- is a shape. Also, Geometricobject is a Comparable (interface) object. The third level of this hierarchy contains specific types of Circle and Rectangle. As in the below figure, we can follow the arrows from the bottom of the diagram to the topmost superclass in this class hierarchy to identify several is-a relationships. For example, a circle is a geometric object and is a shape as well as is a comparable object. interface Comaprable abstract class Shape Geometricobject abstract class Circle Rectangle Requirements: Need to create the following four (4) classes and each class MUST include the code documentations 1. Shape class (20 pts) -abstract class class Variable Constructor/method Shape() Shape -X: int Shape (int, int) -Y: int setX(int x): void and setY(int Y): void getX(): int and +getY(): int getName(): abstract String getArea(): abstract double get Perimeter abstract 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!