Skip to main content

Questions tagged [inheritance]

For questions about inheritance, a mechanism in object-oriented programming that allows classes to inherit properties and behaviour from other classes, creating a hierarchical relationship between classes.

Filter by
Sorted by
Tagged with
14 votes
10 answers

Are there any practical use cases for subtyping primitive types?

In, for example, Python, it is possible to subtype primitive types: ...
Wheelwright's user avatar