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
Why is swift important?
What do you do when you realize that your app is prone to crashing?
What does appdelegate swift do?
What is lazy stored procedure in swift and when is it used?
Who created swift?
What is “defer”?
What is floating point number in swift?
Can enum conform to swift protocol?
What are the most important features of swift?
What is a delegate in swift?
Is swift pass by reference?
Mention some advantages of swift?
What is swift module?
How can you prioritize the usability of the demand process?
What is the difference between function and method in swift?