Common Type System—Methods and Subclassing


Jump to: navigation, search
Visual C# Tutorials
.NET Framework Tutorials

Common Type System

© 2006 Wiley Publishing Inc.

Methods and Subclassing

We discuss subtyping and polymorphism in much greater detail later on in this chapter. But assuming that you are at least somewhat familiar with standard OO idioms, we will discuss virtual methods, overriding, and newslots here. All you need to understand for this discussion is that a type may subclass another type, forming a special relationship between them. The subclass inherits its base type’s nonprivate members, including methods. The topic here is controlling how those methods get inherited.



Previous_Page_.gif Next_Page_.gif





Personal tools