What is the use of Aggregation and composition in Java? – Page 2 – Enpatika
Skip to content
Yeni Enpatika Logo

Enpatika

En Güncel Oyun ve Sistem Gereksinimleri Sitesi

  • Ana Sayfa
  • Gizlilik Politikası
  • Telif Hakları
  • İletişim
  • taraftar tv apk

What is the use of Aggregation and composition in Java?

How do you use aggregate in Java?

1 April 2022 Enpatika.com Genel

If a class have an entity reference, it is known as Aggregation. Aggregation represents HAS-A relationship.

Read more

Why do we use Aggregation in OOP?

1 April 2022 Enpatika.com Genel

Aggregation acknowledges that the two classes have their own life cycle (i.e. can exist without each other). Each object is instantiated separately. In the example of a hand of cards, the cards will already exist before they are added to a Hand class.

Read more

Posts pagination

«Previous Posts 1 2
WordPress Theme: Gridbox by ThemeZee.