DEV Community

Discussion on: Single-Responsibility Principle done right

Collapse
 
alainvanhout profile image
Alain Van Hout • Edited

I've always found it counterintuitive that a square should be able to draw itself. What if you don't use a method of drawing that was known when the Rectangle class was created? (assuming perfect foresight is a big OOP issue -- and decorators and visitors aren't a panacea)