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 |
How does swift achieve multiple inheritance?
What is weak in swift?
What is swift? How is it different from objective-c?
Does swift support multiple inheritance?
Is swift object oriented programming?
What is the benefit of using guard statement in swift?
What is abstract class in swift?
What is dependency injection in swift?
What are lazy stored properties, and how are they useful?
Explain mvc structure.
List out what are the control transfer statements used in Swift?
Is swift garbage collected?