Atharva Mahamuniatharvamahamuni.hashnode.devยทSep 22, 2024Favor composition over inheritanceInheritance of classes is not always a good idea, sometimes you need to consider the composition as well. Let's discuss one of the important design principles, for writing more clean, reusable, and extensible code - Suppose you are running a vehicle ...inheritanceAdd a thoughtful commentNo comments yetBe the first to start the conversation.