Answer the question
In order to leave comments, you need to log in
What does the question mark mean in a class?
Hello. Can you please tell me what the question mark means?
Class
class Person {
var name: String
init(name: String) {
self.name = name
}
var apartment: Apartment?
deinit {
print("\(name) deinit")
}
}
var apartment: Apartment?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question