|
|
|
|
DerivedClasses
|
|
|
|
Derived Classes
I. Introduction
II. Derived Classes
III. Multiple Inheritance
IV. Control
V. Virtual /Constructor
VI. Placement
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
.... |
|
|
|
|
|
|
|
|
|
|
|
|
|