-public class Weight {
+public class Weight implements Comparable<Weight> {
private int weight;
Weight(int weight) {
private boolean validateWeight(int weight) {
return (weight > 0);
}
+
+ @Override
+ public int compareTo(Weight weight) {
+ return 0;
+ }
}