3 ms·
Yep. There is no reason the Item class should "know about" the Cart class. The add_to_cart method doesn't belong in it.
by enraged_camel 11y ago
Yep. There is no reason the Item class should "know about" the Cart class. The add_to_cart method doesn't belong in it.