A subtype inherits the following from its supertype.
-
Attributes
-
Methods
-
Events
-
All the above
Reveal answer
Fill a bubble to check yourself
D
Correct answer
Explanation
In object-oriented programming and type inheritance, a subtype inherits all features from its supertype: attributes (data members), methods (functions), and events (notifications). This comprehensive inheritance ensures the subtype maintains the supertype's complete interface and behavior.
AI explanation
In object-oriented modeling, a subtype inherits its supertype's full structural and behavioral definition — its attributes (data), its methods (behavior), and its events — since the subtype is meant to be a more specialized version of the same kind of thing. That's why 'all the above' captures what's inherited rather than just one category alone.