Created
July 22, 2008 02:37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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