This is where Java interface comes in. Method signatures will be available through an interface detached from the class hierarchy. You can group several unrelated methods to define the behavior of a ...
Java interfaces are different from classes, and it’s important to know how to use their special properties in your Java programs. This tutorial introduces the difference between classes and interfaces ...
their role in enhancing backward compatibility.