Association:
Uses the services of another class
Aggregation:
A class “owns” another class
Composition:
A class is composed of another class; refers to an aggregation within which the component parts and the larger encompassing whole share a lifetime
猜你喜欢
本站原创《复杂软件设计之道:领域驱动设计全面解析与实战》