by adwn · 11y ago · 0 comments
Sure, but that doesn't imply that individual objects/classes should model individual abstractions 1-to-1, as would be the case for the typical Vehicle, Car, Boat example classes.
...unless your problem domain is a simulation of objects in a physical environment, in which case OO is well suited "as is".
But certainly, that's typically not your everyday scenario in development.
I agree that those structures are easier to make efficient, but for handling the hierarchy of different types of objects with different but related behaviors, you'll basically have to reimplement a limited form of object-orientation and message passing.