Tag: struct
What is the difference between struct and class in C# ?
Below are some differences between struct and class in C# classes are reference types where as struct are value types. Null value cannot be assigned to the Struct because it is a non-nullable value type . Whereas the object of a class can be assigned a null value. Classes support inheritance but the struct doesn’t. struct cannot have destructor but a class can have. struct…