
Hi, just wanted to see if i understood the question correctly.
(i)
public interface Coordinate {
public double getDegrees();
public double getMinutes();
public double getSeconds();
public String getDirection();
}
(ii) Could i use an Abstract class instead of the interface and use the Latitude class to extend the Abstract class. (not really sure why this is advantageous? is it because i can pick and choose the methods i want to use, instead of being forced to use the implemented methods )
(iii) public class Latitude implements Coordinate {}
(iv) public class Latitude extends Coordinate{}
-1and0areintnotdouble'S'is acharnot aStringApart from a
classand anabstract classyou can use incantation which isn’t obvious.