Skip to content

Instantly share code, notes, and snippets.

@ELLIOTTCABLE
Created July 22, 2008 02:37
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 ELLIOTTCABLE/614 to your computer and use it in GitHub Desktop.
Save ELLIOTTCABLE/614 to your computer and use it in GitHub Desktop.
Size := Object clone
large := Size new
medium := Size new
small := Size new
Colour := Object clone
black := Colour new
brown := Colour new
white := Colour new
Dog := Object clone do(
size := medium
color := brown
bark := method(
"arf! arf!" println
)
)
tucker := Dog clone do(
size = small
bark = method("ah! ah!" println)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment