Hi all, I just wonder how to access a property of some "higher" class (object) from a "lower" class (object). Do not know how to explain clearly, so here is an example:
A = Class_higher();B = Class_lower();
Imagine, there is a property prop_A in A, so you can access it e.g.:
A.prop_A;
Then I store B into A.prop_A:
A.prop_A = B;
Finally imagine, there is some method meth_B in B, so you can call it:
A.B.meth_B;
My question is: Is it possible to access prop_A through meth_B?
Note A is not the superclass of B…
Thanks, Adam
Best Answer