example of aggregation in java
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
...
}