Skip to Content
Apr 14, 2010 at 01:32 PM

Get the value of variable between the methods of same class.


Hi Guys,

I know that you can retrieve the value of variable between the programs without passing it as parameters, by assigning

the program/field name of calling program variable to field symbol 1

Is there any way to do the same thing among the methods of a same class?

I have a class which has 2 methods: MethodA & MethodB

MethodA calls MethodB. I want to access a value of a field in MethodB which is declared in MethodA.

Please let me know if it is doable?