Composition over inheritance 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

Composition over inheritance Java

What is difference between aggregation and composition in Java?

1 April 2022 Enpatika.com Genel

Aggregation implies a relationship where the child can exist independently of the parent . For example, Bank and Employee, delete the Bank and the Employee still exist. whereas Composition implies a relationship where the child cannot exist independent of the parent.

Read more

IS-A relationship in oops?

1 April 2022 Enpatika.com Genel

In OOP, IS-A relationship is completely inheritance . This means, that the child class is a type of parent class. For example, an apple is a fruit. So you will extend fruit to get apple.

Read more

Posts pagination

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