2 ms·
There's more than one language that will quite happy type convert back and forth between a function and an equivalent single-method interface e.g. "a function t
by SideburnsOfDoom 9y ago
There's more than one language that will quite happy type convert back and forth between a function and an equivalent single-method interface e.g. "a function that returns an int" and "an interface with one method, a function that returns an int".
Though "one method per interface" isn't the aim of the Interface Segregation Principle.