Totality Corp interview question

Basics of Swift Programming like: Delegate and Protocols, Difference between struct and class.

Interview Answer

Anonymous

8 Nov 2021

1. Delegate is an event handler it is use to communicate Data from object to another. Protocols is a blue print of methods or properties can be used in struct, class or enum. 2. Classes can inherit from another class unlike struct. Class is pass by reference and struct is pass by value.