2 ms·
Yeah, if we look at the real world "car" object, we've certainly over decades established some common requirements that you could call interfaces: turn signals,
by majormajor 5y ago
Yeah, if we look at the real world "car" object, we've certainly over decades established some common requirements that you could call interfaces: turn signals, headlights, a rough common size, etc. We've abstracted it + restricted the interface (through laws and regulations) to the point that you can build a highway or an intersection by following well-understood principles.
But if you want to do something more complicated... it breaks down. Imagine trying to write software to do things with a generic "Transmission" interface. All the complicated logic would still be the responsibility of the vendor so you would be out of luck trying to come up with something more granular than "check_status()" and "repair(parts: List<Object>)" as an interface. Which is so limited as to be pointless.