Skip to content

Glossary: Software Design Patterns in Java

Override

Also written: @Override, overriding

Writing a child class's own version of a method it inherits, marked `@Override`. `LockedCard` and `GiftWrappedProduct` override `topUp` and `total`.

Where the book teaches it

Related terms

InheritanceFactory method