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
Is multiple inheritance possible in swift?
What type of objects are basic data types in swift?
Explain the common execution states for a swift ios app (ios application lifecycle).
Is swift similar to python?
What is lazy stored procedure in swift and when is it used?
How long does a swift transfer take?
what are functions different from methods?
What is block in swift?
Why do we use swift?
What is swift stand for?
What is the significance of “?” In swift?
How much do swift developers make?
What is singleton class swift 3?
How can you make a property optional in swift?
Is swift an object-oriented programming language?