Chapter 8. Contract Programming with Interfaces
In this chapter, we will work with complex scenarios in which we will have to use instances that belong to more than one blueprint. We will take advantage of the interfaces to work with contract programming. We will:
- Learn about interfaces in Java 9
- Understand how interfaces work in combination with classes
- Declare interfaces in Java 9
- Declare classes that implement interfaces
- Take advantage of the multiple inheritance of interfaces
- Combine class inheritance with interfaces