educative.io

Educative

Class Diagram RelationShip between BookItem and Library

Why does bookItem has composition relationship with Library.BookItem can exist independent of Library.So is it not aggregation instead of composition?

I agree with you. It seems it’s the same pattern as the one explained in ealier module mainly class Aircraft can exist independently with class Airline