Last active
January 21, 2018 22:14
-
-
Save agoiabel/28862b8aefb03941cd3a0dc62c1d2ac2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Flyable { | |
func fly() -> String | |
} | |
class Airplane: Flyable { | |
func fly() -> String { | |
return ("Airplane can fly") | |
} | |
} | |
class Bird: Flyable { | |
func fly() -> String { | |
return ("Bird can fly too") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment