Class Distance
java.lang.Object
Distance
- All Implemented Interfaces:
- java.lang.Comparable<Distance>
public class Distance
- extends java.lang.Object
- implements java.lang.Comparable<Distance>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
myFeet
private int myFeet
myInches
private int myInches
Distance
public Distance()
Distance
public Distance(int x)
Distance
public Distance(int x,
int y)
Distance
public Distance(Distance arg)
getFeet
public int getFeet()
getInches
public int getInches()
setFeet
public void setFeet(int x)
setInches
public void setInches(int x)
compareTo
public int compareTo(Distance d)
- Specified by:
compareTo
in interface java.lang.Comparable<Distance>
equals
public boolean equals(Distance arg)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object