<<< Sequence Diagram Example | Index | Message Types >>> |
Object A can access object B if:
A has a relationship with B.
Class of A has a static relationship with B.
A has a relationship with C, and C has a public relationship with B.
(Also consider static, friendly, and protected variants.)
A obtained a reference to B as an actual parameter to the currently executed method...
...for duration of this method only.
A created B,
only within the local scope,
while holding reference to B.
<<< Sequence Diagram Example | Index | Message Types >>> |