public abstract class TwoDShape implements MyComparable { public final boolean isLarger(TwoDShape other) { if( this.getArea() > other.getArea() ) return true; else return false; } public final boolean isEqual(TwoDShape other) { if( this.getArea() == other.getArea() ) return true; else return false; } public abstract double getArea(); }