Interfaces

Concrete examples of interfaces.

Example: mouse handler

A good example of an interface is the MouseListener. This interface contains a function to be called when a mouse clicks on something (actually different functions for press, release, and complete click).

Making this an interface means any class you create can have the ability to work with mouse events.

Last modified August 18, 2023: 2022-2023 End State (7352e87)