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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top