Aggregation in java
- If a class have an entity reference, It is known as Aggregation
1. Why use Aggregation
- For code Reuseability
2. Example
1) Address.java
2) Emp.java
'Back-End > Java_1' 카테고리의 다른 글
[Java] Overloading vs Overriding (0) | 2016.08.24 |
---|---|
[Java] Method Overriding (0) | 2016.08.24 |
[Java] Inheritance in Java (0) | 2016.08.23 |
[Java] Input by Console (0) | 2016.08.23 |
[Java] Input by BufferedReader (0) | 2016.08.22 |