how to identify aggregation and composition in java code example
Example: how to implement aggregation in java
class Employee {
int id;
String name;
Address address;//Address is a class
...
}
class Employee {
int id;
String name;
Address address;//Address is a class
...
}