Swift Developer Question:

Explain me what Is A Deinitializer In Swift?

Tweet Share WhatsApp

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.

}

Download Swift Developer PDF Read All 39 Swift Developer Questions
Previous QuestionNext Question
Tell me what is Enum?Tell us what Lazy stored properties are and when they are useful?