Frage im Vorstellungsgespräch bei Halliburton

Explain the difference between c# structure and class.

Antwort im Vorstellungsgespräch

Anonym

20. Nov. 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.