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

- Category
- Java
- Level
- Freelancer
- Tags
- java, OOP
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
