Introduction - If you have any usage issues, please Google them yourself
Design an abstract class Shape, including the two abstract methods, namely, calculation of the shape of the perimeter and area. Design of concrete class Rectangle and Circle, respectively rectangular and circular, and they are the Shapes of the subclass. So that Rectangle and Circle are the realization of Comparable interface. The preparation of a generic sort procedure and a generic binary search procedures (write their own code), will give two kinds of types of arrays to sort and find the specified object.