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 type of literals does swift language have?
Is swift a good language to learn?
What is the use of break statement in swift language?
What lazy stored properties is and when it is useful?
What are the different ways to pass data in swift?
What is subscript in swift?
What is singleton in swift?
Is swift compiled or interpreted?
In swift, what type of object are basic data types?
Explain functions?
Explain some biggest changes in usernotifications.
Why does apple use swift?