News for hackers. Stuff that matters.
Re:Inheritance Is Terrible by enraged_camel on Saturday March 19, 2016 @05:47PM (#11320628)
Yep. There is no reason the Item class should "know about" the Cart class. The add_to_cart method doesn't belong in it.

There are no comments on this comment yet.