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.
(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
Get step-by-step solutions from verified subject matter experts
