brand new to Swift here coming from Objective-C, created a basic class like so:
class Person {
var name: String
var age: Int
init(){
name = “Bob”
age = 30
}
func printInfo(){
print(name)
print(age)
}
}
Why is it okay just to use init()
here? I thought I would need to use override func init()
. Also do I need to call the super or anything?