SyntaxFix
Write A Post
Hire A Developer
Questions
as another example, consider a car class, this would be a good use of composition, a car would "have" an engine, a transmission, tires, seats, etc. It would not extend any of those classes.