Tag Archives: deinit

Initializers swift programming

Initializers swift programming A member inside the class has to be initialized in swift. If not then it will produce an error. It can be done using init() function. Assign values to members when object is created and use deinitializer to perform clean up using deinit()