Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is de-initializer and how it is written in Swift?

Answer Posted / iosraj

A de-initializer is declared immediately before a class instance is de-allocated. You write de-initializer with the deinit keyword. De-initializer is written without any parenthesis, and it does not take any parameters. It is written as

deinit {

// perform the deinitialization

}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the different features of swift programming language?

833


Why swift is the best language?

780


Is swift an object-oriented programming language?

830


What is framework in swift?

830


What is the latest version of swfit programming?

827


What do you mean by initialization?

810


What are the higher order functions in swift?

833


What is swift programming language?

894


Who calls the main function of our app during the app launch cycle?

880


Should I use struct or class swift?

899


What is singleton class swift 3?

774


What is the swift main advantage?

814


How do I create a swift file in xcode?

874


Is swift like java?

805


How can you declare a variable in swift?

894