I have the following class, with an init method:
class user {
var name:String
var address:String
init(nm: String, ad: String) {
name = nm
address
Have you tried setting a value to numberPriorVisits and changing the types for the calls to super
class user {
var name:String
var address:String
init(nm: String, ad: String) {
name = nm
address = ad
}
}
class registeredUser : user {
var numberPriorVisits: Int;
init(nm: String, ad: String) {
self.numberPriorVisits = 0;
super.init(nm: nm, ad: ad)
}
}