blob: b0672e63952845c2618433fb3d7e7cf08fa24efc [file] [log] [blame]
struct FishAndChips {
var costPounds: Float
var costEuros: Float {
get {
return costPounds * 0.77
}
set {
costPounds = newValue / 0.77
}
}
var costDollars: Float {
get {
return costPounds * 0.92
}
nonmutating set {}
}
}
final class Beer {
var abv: Int {
get { return 7 }
set { }
}
}
class LazyCat {
lazy var purrs: Int = 10
}