Classes contain state & behaviour - things they have & things they do. Just as humans inherit certain states & behaviours from their parents, so too can classes.
Often referred to as a Parent-Child relationship. Other names include:
Parent | Superclass | Base class | Generalisation
Child | Subclass | Derived class | Specialisation
No comments:
Post a Comment