Skip to content

Instantly share code, notes, and snippets.

@bluemihai
Created March 31, 2016 00:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bluemihai/89b673e72c47f2e72b8d271a7007be27 to your computer and use it in GitHub Desktop.
Save bluemihai/89b673e72c47f2e72b8d271a7007be27 to your computer and use it in GitHub Desktop.

Release 0

Pick two real-life objects that have some relationship, i.e. a reason to send messages to each other. Define a class for each. Initialize it with data that makes sense, and have at least one other method for each.

Have some runner code that creates one (or more) objects in that class, and tries those methods.

This should take you no longer than 15 minutes.

Stretch challenges:

  • 3 classes
  • use inheritance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment