There are several ways that existing classes can be used to create new ones, thus promoting reuse of tested code you have written.
The two primary ways of building new classes from existing classes:
- composition
- inheritance
There are several ways that existing classes can be used to create new ones, thus promoting reuse of tested code you have written.
The two primary ways of building new classes from existing classes: