Concept Flow - Interface as contract mental model
Define Interface
Interface specifies methods
Class implements Interface
Class must provide all methods
Use class via Interface reference
Call methods guaranteed by Interface
An interface defines a set of methods as a contract. Classes that implement the interface must provide those methods. This ensures consistent behavior when using the class through the interface.