C H A P T E R 7
Classes and Inheritance
- Class Inheritance
- Accessing the Inherited Members
- All Classes Are Derived from Class object
- Masking Members of a Base Class
- Base Access
- Using References to a Base Class
- Constructor Execution
- Inheritance Between Assemblies
- Member Access Modifiers
- Abstract Members
- Abstract Classes
- Sealed Classes
- Static Classes
- Extension Methods
- Naming Conventions
Class Inheritance
Inheritance allows you to define a new class that incorporates and extends an already declared class.
- You can use an existing class, called the base class, as the basis for a new class, called the derived class. The members of the derived class consist of the following:
- The members in its own declaration
- The members of the base class
Get Illustrated C# 2012 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.