Skip to content

Instantly share code, notes, and snippets.

@NetguruGist
Created October 31, 2015 14:51
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 NetguruGist/086c19d0f0ff24c997db to your computer and use it in GitHub Desktop.
Save NetguruGist/086c19d0f0ff24c997db to your computer and use it in GitHub Desktop.
generics1 swift
class Person: NSObject {
let name: String
let surname: String
var friends: [Person]?
init(name: String, surname: String) {
self.name = name
self.surname = surname
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment