Swift Developer Question:
Download Job Interview Questions and Answers PDF
Explain me what Is A Deinitializer In Swift?
Answer:
If you want to perform an additional clean-up of your classes, it is possible to define a block called deinit.
Syntax -
deinit {
//Your cleanup statement here.
}
Syntax -
deinit {
//Your cleanup statement here.
}
Download Swift Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell me what is Enum? | Tell us what Lazy stored properties are and when they are useful? |