# 11. Inheritance III: Subtype Polymorphism, Comparators, Comparable

In this chapter of the textbook we will be:&#x20;

* Reviewing Dynamic Method Selection
* Defining Subtype Polymorphism and contrasting it against Explicit Higher Order Functions
* Seeing Applications of Subtype Polymorphism in:
  * Comparators
  * Comparables

The following videos for Lecture 10 correspond to the content for this chapter of the textbook.

{% embed url="<https://www.youtube.com/watch?ab_channel=JoshHug&index=1&list=PL8FaHk7qbOD56r1sGUGifsfC0KRDAsuZ3&v=cUL1LWVv984>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cs61b-2.gitbook.io/cs61b-textbook/11.-inheritance-iii-subtype-polymorphism-comparators-comparable.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
