Created
April 2, 2019 13:11
-
-
Save faganello60/c5e870ef7ac131e7ad7c8c4e2b8a766f 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 Personage { | |
func compliment() { | |
print("Hi there") | |
} | |
} | |
class Singer: Personage { | |
func highFive() { | |
if isGood { | |
compliment() | |
} | |
} | |
} | |
class Waiter: Personage { | |
func highFive() { | |
if isGood { | |
compliment() | |
} | |
} | |
} | |
class Thief: Personage { | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment