Interfaces

An interface declares a set of method signatures that a type must satisfy, enabling shared behavior across unrelated types. Each aspect has a dedicated chapter:

TopicDescription
DeclarationDeclaring the methods an interface requires
ImplementationSatisfying an interface with extend

See Also

  • Methods — attaching behaviour to a type with extend
  • Structures — the types that most often implement interfaces