public class DuckAdapter extends java.lang.Object implements Turkey
Modifier and Type | Field and Description |
---|---|
(package private) Duck |
duck |
(package private) java.util.Random |
rand |
Constructor and Description |
---|
DuckAdapter(Duck duck) |
Modifier and Type | Method and Description |
---|---|
void |
fly() |
void |
gobble() |