AbstractionInterfaces — Implicit & Small
All courses

Implicit interface satisfaction

Types implement interfaces by having the methods — no implements keyword. Keep interfaces small (often one method).

Best practice: Define interfaces at the consumer, not the producer. Accept io.Reader, not concrete types.

Output
Press Run to execute your code.