I have a question which has been explained in many ways , but still has not made me clear.
- What is creating of objects by "Object composition" in terms of abstract factory pattern ?
It seems like both the patterns use inheritance to create objects.
I have a question which has been explained in many ways , but still has not made me clear.
It seems like both the patterns use inheritance to create objects.
Object composition means the object is composed of something. It's basically the strategy pattern, making the two objects have a "has-a" relationship, rather than an "is-a" relationship (as with straight inheritance).