What is de-initializer and how it is written in Swift?
Answer Posted / 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 |
Post New Answer View All Answers
What are the advantages of swift?
What is strong in swift?
Explain mvc structure.
How do I add a header in swift?
What is the function of swift?
What is swift module?
What is the use of double question mark “??” In swift?
Which is the superclass of all the view controller objects?
Explain core data.
Why do we need closure in swift?
Can any be nil swift?
What is type aliasing in swift?
How to convert nsarray to nsmutablearray in swift?
What is optional chaining?
What is a guard statement? What is the benefit of using guard statement in swift?