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 the different features of swift programming language?
Why swift is the best language?
Is swift an object-oriented programming language?
What is framework in swift?
What is the latest version of swfit programming?
What do you mean by initialization?
What are the higher order functions in swift?
What is swift programming language?
Who calls the main function of our app during the app launch cycle?
Should I use struct or class swift?
What is singleton class swift 3?
What is the swift main advantage?
How do I create a swift file in xcode?
Is swift like java?
How can you declare a variable in swift?