Bidirectional associations are navigable from both ends. For example, given the following classes (for simplicity, suppose the association is 0..1 at both ends)
class Parent { Child* children; } class Child { Parent* parent; }
you can go from Parent to his child and vice versa: the parent knows about his child, the child knows about his parent and (if this.parent!=null ) this.parent.child==this (otherwise he will not be the same associations )
Parent <---------> Child
However, if the pointer to Parent in Child not a pointer:
class Child { }
it will be a one-way communication: you can switch from parent to child, but you cannot return from children to parent.
Parent ----------> Child
Javier
source share