Is using a method from one class as a parameter for another class possible?
Example :
Class1 method:
Now making a method for my Class2(Different class file from Class1), is it possible to take ONLY initialA's results of "money++" as one of my parameter, and not take the results of a++ or b++ (assuming these are all int) ?PHP Code:
public void initialA ()
{
if(a<b)
a++;
else
b++;
if(money == 2)
money++;
}
thanks