Nota: A tradução desta entrada está atualmente em revisão de qualidade, portanto parte do conteúdo é exibida temporariamente apenas em inglês.
Este verbete ainda não foi traduzido para o seu idioma, portanto o original é exibido abaixo.
supertype
This term is primarily used in technical domains such as database design and object-oriented programming to describe a hierarchical relationship. It conveys a sense of generalization, where the supertype acts as a blueprint or a parent container for shared characteristics, while subtypes provide the specialized details.
In a structural context, the word implies a top-down flow of inheritance. It is almost exclusively used in formal technical documentation or architectural discussions rather than casual conversation, serving as the precise counterpart to the term subtype.
Meanings
Examples
The Vehicle class serves as the supertype for both Car and Truck.
We should define a common supertype to avoid duplicating attributes across these tables.
I wonder if this supertype is too abstract for our current needs.
Does the supertype contain all the necessary fields for the subtypes?
The system treats every object as an instance of the top level supertype.
Let us move the shared logic up to the supertype to keep the code clean.
A Person entity acts as the supertype for Employee and Customer in this schema.
The supertype defines the basic behavior that all derived classes must implement.