Skip to content

Instantly share code, notes, and snippets.

/untitled.txt Secret

Created July 21, 2014 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/17d8d2d25a78644046b6 to your computer and use it in GitHub Desktop.
Save anonymous/17d8d2d25a78644046b6 to your computer and use it in GitHub Desktop.
protocol MyClass {
func publicMethod(foo:String?)->Bool
}
class MyClassImplementation : MyClass {
func publicMethod(foo:String?)->Bool{
return foo.getLogicValue()
}
}
let myClass:MyClass = MyClassImplementation()
myClass.publicMethod("something")
myClass.publicMethod(nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment