What is the use of Association, Aggregation and Composition (Encapsulation) in Classes
- by SahilMahajanMj
I have gone through lots of theories about what is encapsulation and the three techniques of implementing it, which are Association, Aggregation and Composition.
What i found is,
Encapsulation
Encapsulation is the technique of making the fields in a class private and providing access to the fields via public methods. If a field is declared…