What is de-initializer and how it is written in Swift?
Answer / iosraj
A de-initializer is declared immediately before a class instance is de-allocated. You write de-initializer with the deinit keyword. De-initializer is written without any parenthesis, and it does not take any parameters. It is written as
deinit {
// perform the deinitialization
}
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the half open range operators in swift?
Mention what are the collection types available in Swift?
Is swift an object-oriented programming language?
What is interface in swift?
What type of literals does swift language have?
Does swift have a garbage collector?
What is dynamic dispatch swift?
Explain what Lazy stored properties is and when it is useful?
What is difference between weak and strong in swift?
Why do we use swift? Mention some advantages of swift?
What is bridging header in swift?
What is the synonym of swift?