16 | | *All animals should have a constructor which gives them a `mass` and a `name` when they are created |
17 | | *All animals can `eat` an `amount`, which increases their `mass` by `amount` |
18 | | *All animals can also `move` a `distance`, which decreases their `mass` by `distance` |
19 | | *Everybody can use `getName` to get the name of an animal |
20 | | *Everybody can use `getMass` to get the mass of an animal |
| 16 | * All animals should have a constructor which gives them a `mass` and a `name` when they are created |
| 17 | * All animals can `eat` an `amount`, which increases their `mass` by `amount` |
| 18 | * All animals can also `move` a `distance`, which decreases their `mass` by `distance` |
| 19 | * Everybody can use `getName` to get the name of an animal |
| 20 | * Everybody can use `getMass` to get the mass of an animal |
29 | | -The `Farm` has a `main` method |
30 | | -In the `main` method, the `Farm` creates a `Cat` with a `mass` of `12.2` named `Cloud` |
31 | | -In the `main` method, the `Farm` creates a `Dog` with a `mass` of `15.4` named `Spot` |
| 29 | * The `Farm` has a `main` method |
| 30 | * In the `main` method, the `Farm` creates a `Cat` with a `mass` of `12.2` named `Cloud` |
| 31 | * In the `main` method, the `Farm` creates a `Dog` with a `mass` of `15.4` named `Spot` |