Change Unidirectional Association to Bidirectional

it2022-05-09  28

You have two classes that need to use each other’s features, but there is only a one-way link.

Add back pointers, and change modifiers to update both sets.

转载于:https://www.cnblogs.com/nanshouyong326/archive/2007/05/15/747360.html


最新回复(0)