Programming · Level 2 of 5
Interface
A contract describing operations a component exposes.
Clients can depend on the contract instead of a particular implementation.
Example
A storage API supports loading and saving through interchangeable backends.
Listen to the definition and example
Audio transcript
Interface. A contract describing operations a component exposes. Clients can depend on the contract instead of a particular implementation. For example: A storage API supports loading and saving through interchangeable backends.
Explore this concept
Why it matters
This helps you read implementation code and describe its behavior precisely.
Start with
Related concepts
Quick recall question
Try answering before looking back at the definition.