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 |
Why we use delegates in swift?
How can you add table view?
What is swift in ios?
Which compiler is used in swift?
Explain what is Swift Programming Language?
How is swift different from objective-c?
What is mvp in swift?
Explain the adapter and memento pattern?
Can enum be extended in swift?
How can we define a base class in swift?
How does swift achieve multiple inheritance?
What is the use of double question mark “??” In swift?