What is Initialization in Swift?

Initialization is the process of preparing an instance of class, structure or enumeration for use. This process is implemented by using initializers, which are special methods that can be called to create new instance of particular type. Initialization involves setting up initial values for stored properties and performing any other set up or initialization as required before an instance is ready for use. Swift initializers do not return a value. Instance of class type can also implement deinitializers.

Leave a Reply

%d bloggers like this: