Association, Composition and Aggregation in Java

Association is relationship between two classes that establish through object in association there are two types

Association its weakly coupled that an object can stay even the other object get destroyed eg an bank can stay without employess and vice versa. Aggregation helps in reusing the code.

Composition its strongly coupled one object cannt stay if other object get destroyed eg library cannt stay if books are destroyed

Knowledge is everything.Check out my app at https://play.google.com/store/apps/details?id=com.vibe.britevibe

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Understanding CIDR Notation and IP Address Range

https://t.me/AutoV2FinanceAirdropbot?start=r08368992130

Ghost Shiba: Bringing the Next Level Shiba Rewards System to the Binance Smart Chain

How I Would Have Approached Software Engineering if I Were To Start Afresh

Empirical Developer

YoungInnovations Weekly #107: Dashain Aayo!,

XACML with WSO2 Identity Server

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Pandiyan Mani

Pandiyan Mani

Knowledge is everything.Check out my app at https://play.google.com/store/apps/details?id=com.vibe.britevibe

More from Medium

Good practise to use Equals and Hashcode Method in Hibernate

Decoding JASON Web Token(JWT) using Java

Debatable Optional Recommendations!

Why Java is platform independent