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 |
Mention what are the features of Swift Programming?
Mention what are the type of integers does Swift have?
Is swift compiled or interpreted?
What are the most important features of swift?
How would you define variables and constants in swift programming language?
Does apple use swift internally?
What is a swift protocol?
Explain enum?
How will you define base class?
How can you define a base class in swift?
What is mvc architecture in swift?
How can you write a multiple line comment swift?