What Is Initialization ?


Please explain why do you think this question should be reported?

Report Cancel

Initialization is the process toward setting up an instance of a class, structure, or enumeration for use. This procedure includes setting initial value for each stored property on that instance andperforming any other setup or initialization that is required before the new instance is prepared for use.
You implement this initialization procedure by characterizing initializers, which resemble exceptional strategies that can be called to make new instance of a particular type. In contrast to Objective-C initializers, Swift initializers don’t return a value. Their primary job is to ensure that new instances of a type are correctly initialized before they are used for the first time.

Please follow and like us:

About the Author