Structs are similar to a class.Some of the points listed below:
• A struct is a value type.
• The structs doesn’t support inheritance other than implicitly deriving from object.
• A struct can have the members like parameterless constructor, a finalizer, virtual members etc.
Asked In: Many Interviews |