Reputation: 534
I have two classes, A
and B
, that work together, like this:
A
object.A
object instantiate B
object as a public property.B
object contains C
array as a public property.QUESTION:
How do I manipulate C
array from global scope, without copying it, AND without explicitly pointing at A->B->C
for each operation?
PS: This is a minimal example. My chains could end up rather long, if no solution exists.
Upvotes: 2
Views: 101