Polymorphism with Interfaces

Using an interface as a variable's type lets you treat an object as just one of its roles, such as treating a Teenager as a Student or a team as a list of Athletes.

Updated

Cheat sheet: Polymorphism with Interfaces
Category
Java
Level
Freelancer
Tags
java, OOP