Changes between Version 13 and Version 14 of ControlSystems/SoftwareTeam/Training/GettingStarted/JavaExercises


Ignore:
Timestamp:
Nov 15, 2016, 7:56:05 PM (9 years ago)
Author:
azhang
Comment:

Step 4

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SoftwareTeam/Training/GettingStarted/JavaExercises

    v13 v14  
    7676* `mass` and `name` should stay `private`. This may be a bit challenging at first, but be creative!
    7777* Hint: `super.method()` will run `method()` of the superclass
     78From here on out, run whatever code you need in `Farm` to check to make sure your code works the way it is expected to.
     79
     80== Animal Farm set 4: Enums
     81* Create an `enum` called `State`, which can be `TAMED`, `PARTIALLY_TAMED`, or `WILD`
     82* `Cat` and `Dog` all have a `State`. Hummingbirds do not
     83* It is possible to `getState` of both `Cat` and `Dog`
     84* `Cat` and `Dog` start with a default `State` of `WILD`
     85* It is possible to `setState` of `Cat`
     86* `Dog` can be `tame`, which makes them more tamed (`WILD` -> `PARTIALLY_TAMED`, `PARTIALLY_TAMED` -> `TAMED`, `TAMED` -> `TAMED`)