Skip to content
Quiz · Classes · lesson 2 of 10

Quiz — a reference to an object

What does the program print?

SWIFT
class Point {
    var x = 0
}
var a = Point()
var b = a
b.x = 10
let c = Point()
print(a.x, c.x)