Loading…

What do you mean by a Deinitializer?

When you are trying to perform extra clean-up of your classes, you can define a block called deinit.
Here is the Syntax:
deinit {
    //Your cleanup statement here.
}

Suggest An Answer

No suggestions avaliable!

Latest post from Swift Interview Questions

Ask Question