Differences between struct and classes in C# : Interview question
Differences between struct and classes are: Struct Class Struct are value types; A variable of a structure type contains the structure’s data. Classes are reference types. A variable of a class type contains a reference to the data as a class type does. Struct use stack allocation. Classes use heap allocation. All struct elements are…
Read More “Differences between struct and classes in C# : Interview question” »