Quiz · Classes · lesson 4 of 10
Quiz — let with a class and a struct
What happens when this program is compiled and run?
class Box {
var n = 0
}
let b = Box()
b.n = 5
print(b.n)What happens when this program is compiled and run?
class Box {
var n = 0
}
let b = Box()
b.n = 5
print(b.n)