Introduction
Syntax [attributes] [modifiers] struct identifier [:interfaces] body [;]
Description
Differences | Struct | Class |
|---|---|
| Structs are value types | Class are reference types |
| Does not support Inheritance | It supports inheritance |
| No Explicit parameterless constructor | Classes can have explicitly parameterless constructors |
| No default Destructor. | Here the Destructor is called |
Example