Skip to content
RED SAGSkills
easy5 pts · first answer countsswiftreference-types

Swift class shared reference

What does this Swift code print?

class Counter { var value = 0 }
let a = Counter()
let b = a
b.value = 3
print(a.value)
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions