๐Ÿ’ปap computer science a review

Interface

Written by the Fiveable Content Team โ€ข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโ€ขWritten by the Fiveable Content Team โ€ข Last updated September 2025

Definition

An interface defines a set of methods that a class must implement. It acts as a contract, specifying what operations an implementing class should support, without revealing the implementation details.

"Interface" also found in: