Halliburton Interview Question

Explain the difference between c# structure and class.

Interview Answer

Anonymous

Nov 20, 2015

a class (a reference type) or as a struct (a value type). In general, classes are used to model more complex behavior, or data that is intended to be modified after a class object is created. Structs are best suited for small data structures that contain primarily data that is not intended to be modified after the struct is created.