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
Explain some biggest changes in usernotifications.
Is singleton thread safe swift?
What is a static variable swift?
Is swift hard to learn?
Is equal to string swift?
What is set swift?
What is ios swift?
What is closure in swift?
What is swift nsarray?
What is the floating point numbers and what are the types of floating number in swift?
Why do we use swift?
Why swift is faster?
What language is swift most similar to?
What is swift stand for?
What is the use of break statement in swift language?