I came across a function called deinit() while reading The Swift Programming Language guide, but I\'m still wondering why and when we need to implement it since
deinit()
If you are creating much of operations in some object which needs to be deallocated at your pace, you can do that in deinit
deinit