Skip to content
Quiz · Classes · lesson 4 of 10

Quiz — let with a class and a struct

What happens when this program is compiled and run?

SWIFT
class Box {
    var n = 0
}

let b = Box()
b.n = 5
print(b.n)