Swift Developer Question:
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.
}
Previous Question | Next Question |
Tell me what is Enum? | Tell us what Lazy stored properties are and when they are useful? |