Timeline for Design pattern for polymorphic behaviour while allowing library separation
Current License: CC BY-SA 3.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 4, 2013 at 9:10 | comment | added | the_mandrill |
I agree that objects shouldn't draw themselves, hence the desire to move that ability into a different class to achieve a separation of concerns. Suppose these classes were Dog or Cat -- the object responsible for drawing them is a lot more complex than for drawing a rectangle.
|
|
| Feb 2, 2013 at 10:13 | history | answered | DeadMG | CC BY-SA 3.0 |