Created
January 21, 2019 15:45
-
-
Save tsh-code/b17c1d625adb1f76c714b4403fc7cf02 to your computer and use it in GitHub Desktop.
PO-Flying-SkyCreature.swift
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
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