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

What are type methods in swift?

719


What is hashable in swift?

754


Can any be nil swift?

751


Explain some common execution states in ios?

745


What is the use of break statement in swift language?

726


Can enum conform to swift protocol?

722


What is better swift or objective c?

742


Why is inheritance not desirable in swift?

782


Does swift have a runtime?

775


What is the full form of swift code?

821


What is nested function in swift?

851


Can you explain completion handler?

759


Is equal to string swift?

784


How many types of closures are there in swift?

713


What is the difference between swift and xcode?

809