百度地图聚合示例
Aggregation in Java is a relationship between two classes that is best described as a "has-a" and "whole/part" relationship. It is a more specialized version of the association relationship. The aggregate class contains a reference to another class and is said to have ownership of that class. Each class referenced is considered to be part-of the aggregate class.
Java中的聚合 是两个类之间的关系,最好将其描述为“具有”和“整体/部分”关系。 它是关联关系的更专业版本。 聚合类包含对另一个类的引用,并说拥有该类的所有权。 引用的每一个类被认为是部分的聚合类。
Ownership oc