Inheritance points out an ‘is-a’ relation (for instance, A Dog is an Animal), while composition highlights a ‘contains-a’ relation (for instance, A Car contains an Engine).