---
title: "Comment by Mustafa on \"The Art of Object-Oriented Programming\" | Hashnode"
description: "Syed Ahmer Shah, the idea of swapping an ElectricEngine without changing Car is a clean way to demonstrate why composition can reduce dependencies."
url: "https://hashnode.com/posts/the-art-of-object-oriented-programming/6aac317930a2121fd7a7ef24/comment/6aac39307081a4a38ec6de0c"
---

[Discussion](https://hashnode.com/posts/the-art-of-object-oriented-programming/6aac317930a2121fd7a7ef24)

Comment [The Art of Object-Oriented Programming](https://hashnode.com/posts/the-art-of-object-oriented-programming/6aac317930a2121fd7a7ef24)

[Mustafa](https://hashnode.com/@mustafaalid)

[Sep 17](https://hashnode.com/posts/the-art-of-object-oriented-programming/6aac317930a2121fd7a7ef24/comment/6aac39307081a4a38ec6de0c)

Syed Ahmer Shah, the idea of swapping an ElectricEngine without changing Car is a clean way to demonstrate why composition can reduce dependencies.
