educative.io

Educative

Booking Class and ShowSeat relatioship should be aggregation, not composition

Booking Class and ShowSeat relatioship should be aggregation, not composition

It should be composition since the seat information is mandatory with booking. In other words, a booking instance should not exist without its corresponding seat instance.