IT lexicon › Programming › Interface

Interface

Programming På svenska → Updated: 2026-05-23

A contract describing which methods a class must implement, without specifying how.

Java/C#/Go have interface. Rust calls it trait. TypeScript: structural typing — any type with the right fields matches. Enables polymorphism and dependency injection.

← Back to the lexicon