previous
|
index
|
next
OOP Terminology
If a class
C
1
is a subclass of class
C
2
, then
C
2
is the
base class
and
C
1
is
derived
from
C
2
(C++ terminology)
C
1
extends
C
2
(Java terminology)
The
ancestry
of a class consists of all classes it is derived from, directly or indirectly.
Example: the ancestry of the
OxfordShirt
class is the
Item
class and the
OxfordShirt
class.
The set of subclass relationships in a class diagram is called the
class hierarchy
.
previous
|
index
|
next