the.com/subclass
A class that inherits its parent's stuff, then acts like it figured it out alone.
means A category that sits beneath a broader category, inheriting its defining traits while adding or overriding some of its own.
from Simply 'sub-' (Latin for 'under' or 'below') plus 'class' (from Latin classis, originally a summons of citizens or a division of the Roman populace, later generalized to any grouped category). The combination is a straightforward 18th/19th-century formation in taxonomy and logic — biologists and philosophers needed a word for 'a class within a class,' so they built one from parts that already meant exactly that. No hidden twist here: the word does precisely what it says, even if the subclass itself won't admit it.
- relationship
- inherits fields and methods from a superclass
- override power
- can replace inherited behavior entirely
- risk
- fragile base class problem breaks it silently
- also called
- derived class or child class