The Startup
Published in

The Startup

Aggregation vs. Composition in Object Oriented Programming

In Object Oriented Programming, there are many different types of relationships which can exist between two or more classes. The most common two types are:

  • Inheritance an “is a” relationship
  • Associationa “has a” relationship

This blog is going to do a deep dive into the two types of Association relationships…

Get smarter at building your thing. Follow to join The Startup’s +8 million monthly readers & +756K followers.

Recommended from Medium

Meet new version of PointPay Banking app for iOS (v 6.0.0)

Aleph.im Partners With Decentr To Provide Crosschain Cloud Services

My flutter 2.0 migration story : Still better story than twilight 🔮

Quick Tip — How to bind a function to a button ?

The 3 types of documents in technical writing (with examples)

Graphic of the word “Steps” on a sheet of paper

[LeetCode]#349. Intersection of Two Arrays

The future of Feren OS theming for GTK

Identify WebSocket clients with autobahn/twisted and Python

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
Anna Azzam

Anna Azzam

Software Developer 👩‍💻🤍 https://annaazzam.com

More from Medium

How I Learned To Write SOLID Code

What happens when you type a URL into your browser?

Regular Expressions—a Rite of Passage for Web Developers

Woman before three computer monitors while coding.

How to Speed Up Your SQL Database