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 |
Can you explain completion handler?
Explain what is half-open range operator?
What is difference between if and guard in swift?
Is swift difficult to learn?
What are the control transfer statements in swift?
What is forced unwrapping? Why is it potentially unsafe?
Mention what is the Floating point numbers and what are the types of floating number in Swift?
Is swift a good language to learn?
What is retain in swift?
How will you connect ui?
What is a string swift?
Is c++ similar to swift?