Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SharedMethods {
- func sharedMethod() {
- println("Shared :-)")
- }
- }
- protocol MyProtocol {
- func method() -> String
- }
- class MyCustomClass: MyProtocol {
- func method() -> String {
- return "Hi"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement