Interfaces: A Promise Any Class Can Keep

When code is written for one class, every new kind of thing means a copy of that code; an interface writes down a promise (a name and a price for some hours) that any class can keep, so the code asks for the promise instead of the class, in C#, Java and TypeScript, with an abstract base class in Python and duck typing in JavaScript.

By

Updated

Cheat sheet: Interfaces: A Promise Any Class Can Keep
Category
Data Structures
Level
Apprentice
Tags
Abstract Class, c-sharp, Interface, java, JavaScript, OOP, python, typescript