Object-Oriented Programming

Interface

English

Overview

A definition of only the method specifications that a class must implement.

Details

A type that defines only method signatures without any implementation, guaranteeing common behavior across different classes. Even in languages with single inheritance, a class can implement multiple interfaces at once, which is also used as a way to get multiple-inheritance-like flexibility without the implementation conflicts that come with it.

More Programming terms