Mar 20, 2018

An interface is a contract between a class and the outside world.

When a class implements an interface, it promises to provide the behavior published by that interface. This section defines a simple interface and explains the necessary changes for any class that implements it.