3 ms·
> Our thinking about cars is highly abstract, as though it's an abstract class/interface with a single go_somewhere(destination) method, which fits quite well
by bcrosby95 6y ago
> Our thinking about cars is highly abstract, as though it's an abstract class/interface with a single go_somewhere(destination) method, which fits quite well with OOP thinking.
So what you're saying is I'm going to have to downcast to a concrete class to figure out if my object is actually suitable for going to the store or my bathroom (my house isn't big enough to drive a car through).
Lines up with most OOP systems I've worked in.
- hntrader 6y agoIdeally the interface is named in a way that's self-documenting and makes it clear that it's not referring to moving around your house, no downcasting required.