Skip to content

Instantly share code, notes, and snippets.

import Foundation
class Item: NSObject {
var name: String
var valueInDollars: Int
var serialNumber: String?
let dateCreated: NSDate = NSDate()
required init(name: String, valueInDollars: Int) {
self.name = name