01Chapter 1: Subclasses and Inheritance: The Starting PointInheritance is a way to make a new class from an existing one. The new class is called a subclass. The class it builds on is called the superclass. In Java, you use the keyword extends to make a subclass.2 min read
02Chapter 2: How Java Picks the Method at RuntimeWhen you call a method on an object, Java waits until the program runs to choose which version to use. This is called dynamic dispatch. Java looks at the object's real class, which is its runtime type. It does not look at the variable's declared type.2 min read
03Chapter 3: Why Fields Don't Behave PolymorphicallyA field is a variable that lives inside an object. Methods are chosen by the object's real (runtime) type. Fields are not. Java picks a field from the declared type, which is the type written on the variable. Static methods work the same way.2 min read