3 ms·
> OOP has one common less formal pattern that is very useful and less used elsewhere - it's the abstract API, but this one people on the internet mostly recomm
by josteink 8y ago
> OOP has one common less formal pattern that is very useful and less used elsewhere - it's the abstract API, but this one people on the internet mostly recommend not using, because it requires inheritance.
Or just use interfaces. As in "design by contract".
And that's just common sense programming wise, not some OOP specific solution.