Struct Inheritance

  • Thread starter Thread starter Joshua Ellul
  • Start date Start date
Joshua Ellul said:
Is struct inheritance allowed?

No. All value types (other than enums, which have similar but separate
rules) derive from System.ValueType (sort of - the value types
themselves don't derive from anything, but the associated boxed type
derives from System.ValueType) and no type can derive from either a
value type or its boxed type.
 
Back
Top