Why use interfaces?
Java doesn’t support multiple inheritance so you can’t extend from 2 classes but you can extend from a single class and implement interfaces.
You can implement multiple interfaces
What does the Comparable interface do?
Allows you to compare objects it sort them in order
Any class which implements the comparable interface must code a method called compareTo()
Objects that implement this interface can be sorted using Arrays.sort()
An interface describes…
A set of method signatures that must be implemented.
A class that implements an interface must implement all the public methods declared in the interface. T or F?
True