U
U
Urukhayy2016-11-14 16:03:36
Database
Urukhayy, 2016-11-14 16:03:36

Should tables or classes be bidirectional in all cases?

There is a connection:
Aggregation-Composition3.png
Here both aggregation and composition. Do all the given classes have to store back references to the enclosing class (doubly linked list)?
A professor can exist without a Department and a University, but a Department cannot exist without a University.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2016-11-14
@OnYourLips

Do all the given classes have to store back references to the enclosing class (doubly linked list)?
No, in many cases one-sided is sufficient.
The most popular type of communication is just one-way many-to-one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question