Swift Developer Question:

Explain me what do you mean by the term “defer”?

Swift Developer Interview Question
Swift Developer Interview Question

Answer:

The term “defer” is a keyword that provides a block of code that executes when the execution is leaving the current scope.


Previous QuestionNext Question
Tell us the difference between not-running, inactive, active, background and suspended execution states?Tell me what is Enum?