Last active
April 25, 2017 16:43
-
-
Save barrault01/16a9af287294daac538ad8766b7802a6 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 anOptionalMethod() | |
func aNotOptionalMethod() | |
} | |
extension MyProtocol { | |
func anOptionalMethod() { | |
//this is a empty implementation to allow this method to be optional | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment