Exam Objective 1.5 Describe polymorphism as it applies to classes and interfaces, and describe and apply the “program to an interface” principle.
Polymorphism is a fundamental aspect of object-oriented programming languages. Java is no exception to this. Polymorphism allows the developer to write code that is more generic. The generic code is more flexible and allows for easier code reuse, another fundamental object-oriented principle. The concept of programming to an interface ...