Is using a method from one class as a parameter for another class possible?

Example :

Class1 method:

public void initialA ()
{
if(a<b)
a++;