组合与聚合

使用现有的类合成新的类,这种现象称为组合(composition)。

如果组合是动态发生的,那么就称为聚合(aggregation)。

posted @ 2020-04-08 09:13  01zhijian  阅读(150)  评论(0)    收藏  举报