Skip to content

Instantly share code, notes, and snippets.

@faganello60
Created April 2, 2019 13:11
Show Gist options
  • Save faganello60/c5e870ef7ac131e7ad7c8c4e2b8a766f to your computer and use it in GitHub Desktop.
Save faganello60/c5e870ef7ac131e7ad7c8c4e2b8a766f to your computer and use it in GitHub Desktop.
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