Last active
December 23, 2018 06:17
-
-
Save byJeevan/b90d8ad12a3b50cb33e097e3078517d3 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
/* 1. Extending protocol from default implementation */ | |
extension SomeType { | |
// new functionality to add to SomeType goes here | |
} | |
/* 2. Adopting Multiple Protocols */ | |
extension SomeType: SomeProtocol, AnotherProtocol { | |
// implementation of protocol requirements goes here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment