default.txt 297 B

123456789101112131415
  1. import Foundation
  2. @objc class Person: Entity {
  3. var name: String!
  4. var age: Int!
  5. init(name: String, age: Int) {
  6. /* /* ... */ */
  7. }
  8. // Return a descriptive string for this person
  9. func description(offset: Int = 0) -> String {
  10. return "\(name) is \(age + offset) years old"
  11. }
  12. }