Friday, 3 June 2016

What is the difference between a struct and a class?


Structs cannot be inherited. Structs are passed by value and not by reference. Structs are stored on the stack not the heap. The result is better performance with Structs.

No comments:

Post a Comment