👉 In computer science, a subtype is a type of data or object that can be derived from another type. For example, an integer type can be represented as a subclass of the `int` type in some programming languages. A subtype is typically used to specify how two different types are related to each other. It allows for flexibility and abstraction when dealing with complex data structures.