Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 420 Bytes

File metadata and controls

42 lines (28 loc) · 420 Bytes

STRUCT

Dog

public struct Dog: Pet

Common animal many people have as pet

Properties

kind

public var kind = AnimalKind.mammal

isAlive

public var isAlive = true

owner

public var owner: AnimalOwner?

givenName

public let givenName: String

All dogs should have a name

age

public var age: UInt