2 Interfaces and Packages 3 What is an Interface? An interface defines a protocol of behavior that can be implemented by any class anywhere in the class.