Skip to main content
Journey Uncommon Logo
JourneyUncommon
easySwiftstructs vs classesSingle-choice MCQ

Two variables hold the same class instance. What does this print?

class Box { var value = 1 } let x = Box() let y = x y.value = 9 print(x.value)