Submitted by trekhleb t3_xvum4n in InternetIsBeautiful
Adverpol t1_ir7d6pw wrote
Reply to comment by Ok-Butterscotch-6829 in Interactive sketches to illustrate SOLID programming principles by trekhleb
The thing is that if you focus on solid it's easy to forget that often you shouldn't have had inheritance in the first place, that's my problem with it anyway. OOP is a tool that should be used when appropriate, which for me means when you actually need polymorphism e.g. store a list of different types of entities in a list.
Viewing a single comment thread. View all comments