Unified Modeling Language Reference Manual, The, Second Edition
by James Rumbaugh, Ivar Jacobson, Grady Booch
powertype
A metaclass whose instances are subclasses of a given class.
See also generalization, generalization set, metaclass.
Semantics
The subclasses of a given class may themselves be considered instances of a metaclass. Such a metaclass is called a powertype. For example, class Tree may have subclasses Oak, Elm, and Willow. Considered as objects, those subclasses are instances of metaclass TreeSpecies. TreeSpecies is a powertype that ranges over Tree.
The instances of a powertype are all subclasses of a single superclass, so the set of generalization relationships constitutes a generalization set. A superclass can have multiple generalization sets and therefore multiple powertypes. Powertypes and generalization sets are alternate ways of ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access