Skip to content

Instantly share code, notes, and snippets.

@tsh-code
Created January 21, 2019 15:45
Show Gist options
  • Save tsh-code/b17c1d625adb1f76c714b4403fc7cf02 to your computer and use it in GitHub Desktop.
Save tsh-code/b17c1d625adb1f76c714b4403fc7cf02 to your computer and use it in GitHub Desktop.
PO-Flying-SkyCreature.swift
protocol Flying {
func fly()
}
extension Flying {
func fly() {
print("🛩️")
}
}
class SkyCreature: Creature, Flying {
func fight() {
print(„🏹")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment