Swift Developer Question:

Download Job Interview Questions and Answers PDF

Explain me what Is A Deinitializer In Swift?

Swift Developer Interview Question
Swift Developer Interview Question

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 Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me what is Enum?Tell us what Lazy stored properties are and when they are useful?