W
W
WenSiL2020-04-05 07:20:44
Software design
WenSiL, 2020-04-05 07:20:44

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 question

Ask a Question

731 491 924 answers to any question