Hi,
The below line is not clear:
“In the below example, only Flight class knows about Aircraft; hence it is a uni-directional association”.
I see that the Aircraft class has a function “getFlights(): list”. How will this function work if Aircraft class doesn’t know about flight? I couldn’t understand why this relationship is uni-directional association.
Kindly let me know. Thanks in advance.