Skip to content

Instantly share code, notes, and snippets.

@waspyfaeleith
Last active July 26, 2016 13:57
Show Gist options
  • Save waspyfaeleith/6ceae9163fe4c9c37d30854b7d4b9071 to your computer and use it in GitHub Desktop.
Save waspyfaeleith/6ceae9163fe4c9c37d30854b7d4b9071 to your computer and use it in GitHub Desktop.

Lab / Homework

  • Add a new class Chicken which only clucks(), and allow the bear to eat it.
  • Add a method that returns the names of all the food in the bears belly (use class names)
  • Add a check so that if the bear is intolerant to the food when he eats it, he will throw up this item

Feel free to add other animals for practice. You may want to try adding your own interface(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment