A history, some negative examples, and some positive examples of using object oriented programming in C++.
The Last Vestiges of Object Orientated Programming
by Geoffrey Viola
From the article:
Object oriented programming is not as popular as it was. As with any programming language feature it can be abused. Multiple inheritance, long inheritance chains, and needless inheritance can add unnecessary complexity. There are few cases where it works well in C++: building product types, enforcing an invariant, and dynamic polymorphism. Generally, classes should follow one of these deliberately to follow the single responsibility principle, but there are exceptions.
Add a Comment