I. Introduction
¡Ü Derived classes
- A mechanism for expressing among classes.
- A simple, flexible, and efficient mechanism for defining a class
by adding facilities to an existing class without
or recompilation. ==>
- Hierarchical relationship £º inheritance
- Class types can inherit characteristics from simpler, more general types.
- If a class D inherits from class B, we say that
D is the class and B is the class£®
¡Ü OOP is the process of building class hierarchies.
How is it to the others of its general class ?
How is it ?
- The levels are the most general.
Each level is more specific than the one before it, and less general.
II. Derived Classes
2.1 Concepts
¡Ü ` but different` situation
¡¦(»ý·«)
|