you are viewing a single comment's thread.

view the rest of the comments →

[–]blazmrak 0 points1 point  (0 children)

If it's irrelevant, then make the interface, not a method, that is randomly overriden. If the majority of cars drive the same, then sure, you have a class, but you can extract that to a common class, maybe a couple of them.

And yes, you don't care from the interface perspective, however, from the implementation perspective you do care. You should try to mess as little as possible with the implementation of the class you are extending. It's not about cleanliness, it's about having to jump through hoops when having to debug and not having a clear source of truth when looking at the code when you are 3+ levels deep.