Question 6-1

In your own words, describe what a Java interface is (this is related to the Java keyword interface), and what a class must do in order to claim that it implements the interface.

Solution

An interface in Java is a set of methods. Any class that claims to implement the interface must define bodies for all these methods.

Back to Review for Quiz 6