Re:Inheritance Is Terrible
by guelo on Saturday March 19, 2016 @05:41PM
(#11320597)
I had trouble following along because I couldn't get over how backwards the code is. Why should a book object have the responsibility of adding itself to a cart? Instead of calling
It should be
[ Parent
| on HN ]