public interface Shape2d { /** * Calculates the area of the 2d shape. * @return Area in UNIT^2 */ public double area(); /** * Returns the perimeter around the shape. * @return Perimeter in UNIT */ public double perimeter(); }