2 ms·
class-oriented programming and object-oriented programming are not the same thing, and they don't serve the same purpose. Class-oriented programming is used to
by Ace17 8y ago
class-oriented programming and object-oriented programming are not the same thing, and they don't serve the same purpose.
Class-oriented programming is used to define new types, like std::vector for example, whose caller know about the existence. This is where the coupling between data/logic happens.
Object-oriented programming is all about interfaces (abstract classes) and tell-don't-asks (in one word: 'messages'), and is a tool to define boundaries between modules.
The author seems to rant about class-orientation. Let's not throw the baby with the bath water.