Java

OOP GUIDE / WORK

 

EXTREMABLE INTERFACE - SOLUTIONS

 

 

 

TASK – PART 1 to 4

 

·                         No work

 

TASK – PART 5 – CREATE THE INTERFACE

 

Here is the interface:

 

public interface Extremable

{

   public double left();

   public double right();

   public double top();

   public double bottom();

}

 

Note that some programmers would have preferred method names such as getLeft(), getRight(), getTop() and getBottom().   But naming styles do the same thing.