Created
July 25, 2017 16:24
-
-
Save littlebobert/f3cf62fb8b3ab781b9d39befecd1585c 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
protocol MyProtocol { | |
func method() -> String | |
} | |
extension MyProtocol { | |
func method() -> String { | |
return "foo" | |
} | |
} | |
class ParentClass { | |
func method() -> String { | |
return "bar" | |
} | |
} | |
class ChildClass: ParentClass, MyProtocol { | |
} |
mvyrko
commented
Jul 26, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment