Answer the question
In order to leave comments, you need to log in
Dependency injection(di) == aggregation?
Actually the question is in the title.
By definition:
Aggregation is the technique of creating a new class from existing classes by including them.
Dependency injection is the process of providing an external dependency to a software component.
In my "by including them" == "providing an external dependency". I'm right? Can di be considered a subspecies of aggregation?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question