Sunbit interview question

What are the main differences between a struct and a class, in the Swift programming language?

Interview Answer

Anonymous

28 Nov 2024

I gave a partial answer which was not 100% accurate. Obviously the answer they were looking for is that a struct instance is a static structure which is passed around by value and a class instance is a dynamic structure which is passed by ref.