Swift Tutorial - Tutorialspoint

(backadmin) #1
var a = 10
println(a)
}
}

class classB: classA {
required init() {
var b = 30

println(b)

}
}
let res = classA()
let print = classB()

When we run the above program using playground, we get the following result:


10


30


10

Free download pdf