5 ms·
The useful example is UI control hierachies. GUI’s was one of the early sucesses of OOP. Those “Dog descend from Animal and has a bark() method” just confuses t
by bazoom42 4y ago
The useful example is UI control hierachies. GUI’s was one of the early sucesses of OOP. Those “Dog descend from Animal and has a bark() method” just confuses the issue.
Inplementation inheritance is a useful tool when you need it, but it’s not that central to OOP.
- xialvjun 4y agoOOP is successful in GUI app is because states are at everywhere in GUI app. Many other apps don't have many states to manage, OOP is bad for them.