by swatcoder · 4y ago · 0 comments
But eventually a junior developer realizes that a Triangle is an PolygonalOpenFrameMetallicPercussionInstrument and it now has 4kb of private state, 307 inherited member functions, and floods your console when its logged.
I love OOP, but caution is indeed warranted.
In fact "composition over inheritance" is a thing in the OOP world.
Inheritance x composition is orthogonal to OO.