Interfaces
- used to achieve abstraction, polymorphism and multiple inheritances.
- what is allowed ? - https://www.baeldung.com/java-interfaces#1-rules-for-creating-interfaces
- Why use ?
- Behavioral Functionality
Comparable,Comparator, andCloneableare Java interfaces that can be implemented by unrelated classes.
- Multiple Inheritence
- Polymorphism
- Reference
- Behavioral Functionality
- https://www.baeldung.com/java-interfaces