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.
}

BY Best Interview Question ON 30 Mar 2020