class Counter { var value = 0 } // let fixes WHICH object c points to, not the object's contents let c = Counter() c.value = 7 print(c.value)
the instance is still mutable