Total Pageviews

Thursday, September 13, 2012

Inheritance

A class will inherit the members of its direct base class. The upshot of inheritance is that a class will
implicitly contain all members of its direct base class, except for any instance constructors, finalizers,
and static constructors.
A derived class can add new members to those it inherits, but it cannot remove the definition of an
inherited member.
Instance constructors, finalizers, and static constructors are not inherited, but all other members are.
A class can declare virtual methods, properties, indexers, and events, and derived classes can override
the implementation of these function members.
Members inherited from a constructed generic type are inherited after type substitution.

No comments:

Post a Comment