A species of bird inherits the fundamental characteristics of its genus, yet has some distinguishing characteristics that differ from other species in the genus.
Blue Jays inherit characteristics from their taxonomy:
|Species||Cyanocitta cristata||Blue Jay|
|Genus||Cyanocitta||Steller's Jay (Cyanocitta stelleri) is the other member of the genus|
|Family||Corvidae||Jays, magpies, and crows|
Similarly a programming class can be defined as a refinement of another class.
|persistentClipStore||remembers clipboard values across multiple usage sessions|
|clipStore||writes remembered values to the clipboard|
|store||remembers key and value associations|
|Map||associates keys and values|
A derived class inherits the methods of its underlying class(es).
A derived class can define additional variables and/or methods.
A derived class can override the behavior of base class methods.
Multiple levels of class derivation can be composed, with each level introducing new capabilities.
A specific object instance is associated with a hierarchy of associated classes.