hi! I have a problem regarding this matter. To illustrate:
i have class A, which holds a data to be passed to class B to be used in
method1 of class B. I also have class C, in which a have the event to trigger method1 in
class B. In order to execute that method1 i have to declare an object of class B.
ClassB classb = new ClassB(); //creates new instance of class B
classb.method1(); //so the data that was from class A to B is already
//null because i've created a new instance of class B in class C
//to access method1.
So, how am i going to retain the data from class A passed to class B when the method is invoked in class C?
Anyone please :)