Re: <font color=blue> IS IT POSSIBLE</font>
Wednesday, May 15, 2002 01:44 AM
Your 'x' and 'y' variables seem to be local to your method in class 'A' and not members of that class. You cannot access these from 'B'. Make them member attributes of 'A'
if you want to get to them. Reflection is of no use to you here as it still won't give you access to the locally scoped attributes of a method.
As an aside, it's never a good idea to let an object directly have access to the attributes of another object - always use accessor and mutator methods.