Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
name |
(package private) int |
weight |
Constructor and Description |
---|
Duck(java.lang.String name,
int weight) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Duck otherDuck) |
java.lang.String |
toString() |
public Duck(java.lang.String name, int weight)