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 |
Is swift easier than java?
What is Initialization ?
What is a type in swift?
What is dynamic in swift?
What are the higher order functions in swift?
What is framework in swift?
What is the use of static keyword in swift?
What is string in swift?
Explain enum?
How should errors be handled in swift?
Is swift an object-oriented programming language?
Does apple use swift internally?