Professional Documents
Culture Documents
Inheritance
Inheritance
Inheritance
Multiple Inheritance in C#: CLR's type system does not allow a class to
inherit from multiple other classes because an instance of such a class will
require multiple sub-objects out of which only the first one can be
reference in a safe manner and without complicating essential runtime
mechanisms such as type-casting, virtual dispatch, reflection and garbage
collection. Since an interface cannot define an instance field it does require
a sub-object within an instance of its inheriting type and as such multiple
inheritance is supported through interfaces.