+ Start a Discussion

pass variable by reference

this sounds really stupid.. can someone help me with passing var by reference to a method in apex. 


I have a pagecontroller class that has a method in it. The method is called multiple times, I want a pass a variable by reference so that it gets updated in that method .


thanks in advance.