- What are interfaces?
- Implementing interfaces
- Multiple inheritance with interfaces
- Default and static methods
- Interface: Contract for classes
- Implements: Keyword to use interface
- Default Method: Method with body in interface
- InterfaceDemo.java - Example of interface
- Compile:
javac InterfaceDemo.java - Run:
java InterfaceDemo
- Create an interface and implement it
- Use default methods
Next Day: Day 21 - Packages and Imports