public class Duck extends java.lang.Object implements java.lang.Comparable<Duck>
Duck(java.lang.String name, int weight)
int
compareTo(Duck otherDuck)
java.lang.String
toString()
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public Duck(java.lang.String name, int weight)
public java.lang.String toString()
toString
java.lang.Object
public int compareTo(Duck otherDuck)
compareTo
java.lang.Comparable<Duck>