Mostderived
Mostderived is a term used in computer science to describe the most-derived type within a set of related types—that is, the most specific subtype that remains a common subtype of all members of the set. The concept is frequently discussed in the context of type resolution, dynamic casting, and method lookup in languages that support inheritance or polymorphism.
Formal definition: Given a collection T of types, a type D is most-derived for T if D
Applications: The notion informs decisions about resolving casts or selecting a common interface in languages with
Relation to related concepts: Mostderived is related to the least upper bound (or join) in type lattices,
Caveats: The term is not uniformly standardized across programming communities. Some discussions prefer “most-derived common type”