[Previous] [Contents] [Next]

Virtual Methods

As we saw in Chapter 5, you can derive one class from another so that one class can inherit and build on the capabilities of an existing class. Because I hadn't discussed methods yet, that discussion touched on the inheritance of fields and methods only. In other words, I didn't look at the ability to modify the base class's behavior in the derived class. This is done by using virtual methods and is the subject of this section.

[Previous] [Contents] [Next]