Created
December 28, 2014 21:30
-
-
Save toddkramer/86780351e18be7c0bbe5 to your computer and use it in GitHub Desktop.
SwiftInitializers04-Person.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Person: NSObject { | |
let firstName: String | |
let lastName: String | |
let middleInitial: String | |
let title: String | |
init(firstName: String, lastName: String, | |
middleInitial: String = "", title: String = "") { | |
self.firstName = firstName | |
self.lastName = lastName | |
self.middleInitial = middleInitial | |
self.title = title | |
super.init() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment