Created
October 22, 2012 16:42
-
-
Save danielcooper/3932429 to your computer and use it in GitHub Desktop.
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
class Code | |
def initialize(person) | |
@person = person | |
end | |
def make_bugs | |
"#{@person.name} does some typing" | |
end | |
end | |
class Developer < Employee | |
def make_bugs | |
Code.new(self).make_bugs | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment