class TenSwimCard extends Pass inherits the pass’s methods. In the subclass constructor, call super(swimmer) before using this; then initialize the card’s own state.
An override calls the parent’s version with super.checkIn(), without the Python-style parentheses after super. The receiver stays the card, so a call to this.describe() inside the parent reaches the card’s override. A card is both instanceof TenSwimCard and instanceof Pass.
Next, use Printing Instances With toString() to give passes their printable lines.