Skip to content

Instantly share code, notes, and snippets.

@konrad1977
Last active August 29, 2015 14:07
Show Gist options
  • Save konrad1977/de09a78d741b1f597059 to your computer and use it in GitHub Desktop.
Save konrad1977/de09a78d741b1f597059 to your computer and use it in GitHub Desktop.
Person_v2
class Person {
var firstname: String
var lastname: String
func fullname() -> String {
return firstname + " " + lastname
}
init(firstname: String, lastname: String) {
self.firstname = firstname
self.lastname = lastname
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment