Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • A more realistic example for your engine -> pedals example would be a something like a Tesla which has no engine or transmission and 2 motors. Commented May 17, 2021 at 13:38
  • @JimmyJames: The point of the example was to retain one of the existing componenets from the original car isntead of chucking them both out, since I was focusing on reusability. Commented May 17, 2021 at 14:12
  • I get it but the issue with building 'inside-out' objects is roughly similar in that the code that 'drives' the car becomes non-reusable. I find sometimes people get bogged down in whether a hypothetical example is realistic and miss the point. Commented May 17, 2021 at 14:25