Glossary: Java Beyond the Basics
Polymorphism
Using one type to stand for many: a List<Discount> holds PercentOff and AmountOff, and each runs its own version of apply.
Glossary: Java Beyond the Basics
Using one type to stand for many: a List<Discount> holds PercentOff and AmountOff, and each runs its own version of apply.