11. Animal
Animal and CarnivoreAnimal.
Animal and CarnivoreAnimal.
Food interface, Candy class, ComboCandy subclass.
Animal. Dog. Cat. Borzoi. Boxer. Abstract example: A, B, C.
Noisy, Colorable, Cat, RandomCat. Practice with classes, abstract classes, and interfaces.
When are abstract classes useful? A discussion of a few examples.
Concrete examples of interfaces.
A quiz asking you to write an interface, an abstract class, and more.
Approaching AP MCQ-type problems by thinking about functions.
When a method is overridden, it can be tricky to figure out which method is called. We give an example to show why it is not possible to call the non-overriden method.