[Swift 2] Initialization: Designated vs Convenience

In terms of definition, Initialization is the process of "birth" to instances for Class, Struct, Enum. We can use it to initialize properties or do tasks for the first time, before the objects are ready for use.

However, in Swift this process does not have to take place normally, but through a number of "rules" to ensure the creation of values ​​and objects becomes safer.

ITZone via IDE Academy

Share the news now