how to make aggregation or 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
...
}