Question: help me with 1&2 please please (1) (4 points)Define an abstract class named Shape which contains two methods calArea() and calPermeter() with the public modifier.

help me with 1&2 please please help me with 1&2 please please (1) (4 points)Define an abstract class

(1) (4 points)Define an abstract class named Shape which contains two methods calArea() and calPermeter() with the public modifier. (2) (4 points)Define an interface MyComparable which contains one method named compareTo(Shape shape). The compareTo() method returns 1, when the property/properties of the current shape(it is a casting object) is/are greater than that of the shape. Otherwise it returns 0 if they are equal, or returns -1, if it is less than the shape's

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!