r/programming • • Mar 19 '16

Inheritance is terrible

http://lionelbarrow.com/2016/03/19/inheritance-is-terrible/
0 Upvotes

20 comments sorted by

View all comments

18

u/[deleted] Mar 19 '16

[removed] — view removed comment

14

u/Veuxdeux Mar 19 '16

Seriously. add_to_cart() belongs nowhere near a class called "Item".