3 ms·
Okay, so how would you model that in a different paradigm? And why could OOP not model that the same way? Your example also doesn't specify a business context.
by mabbo 8y ago
Okay, so how would you model that in a different paradigm? And why could OOP not model that the same way?
Your example also doesn't specify a business context. What kind of software am I building such that I need to model a car and it's color? That simple question will entirely change how the OOP model is designed.
OOP is easy to teach because it's easy to use, to understand. But again, if you use simple poorly thought out OOP, it may work- just badly. And of course there's the problem of "those who can't do, teach" and often those teaching programming are poor programmers.