Page 169

Swift

let mark = 98

println(stname) println(mark) When we run the above program using playground, we get the following result: swift 98

ARC Strong Reference Cycles Class Instances class studmarks { let name: String var stud: student?

init (name: String) { println("Initializing: \(name)") self.name = name }

deinit { println("Deallocating: \(self.name)") } }

class student { let name: String var strname: studmarks?

init (name: String) { println("Initializing: \(name)") self.name = name }

deinit { println("Deallocating: \(self.name)") 157

​Fast is really a strong and intuitive coding language for macOS, iOS, watchOS and tvOS....  

Quick is a effective and instinctive programming language for macOS, iOS, watchOS and tvOS....

Read more
Read more
Similar to
Popular now
Just for you