5 ms·
Most oop was designed in the context of desktop gui apps, which are much more complex that web apps imo. Is-a vs has-a is a lot more clear in context of widget
by AtlasBarfed 3y ago
Most oop was designed in the context of desktop gui apps, which are much more complex that web apps imo.
Is-a vs has-a is a lot more clear in context of widgets and windows. It still isn't perfect, most popular gii used inheritance whereas composition would probably be better.
Inheritance ended up as a core component of oop principles when ultimately it is a flawed approach compared to more flexible composition methods.
Liskov substitution was a massive success, classes were an improvement over structs, private vs public was generally a good idea even if the astro architects went nuts with it.