Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. class SharedMethods {
  2. func sharedMethod() {
  3. println("Shared :-)")
  4. }
  5. }
  6.  
  7. protocol MyProtocol {
  8. func method() -> String
  9. }
  10.  
  11. class MyCustomClass: MyProtocol {
  12. func method() -> String {
  13. return "Hi"
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement