I have 10 specific methods on my code, and I want to use them with a Class Object like this one:

```
void function(){
//do Something that I want
}

class PoseAction{

Pose pose;

void methodDesirable();

PoseAction(Pose ps, Method function()){

  this.pose = ps;
  this.methodDesirable() = function();
}

}

```

So when I create a new Object

```
PoseAction ps = new PoseAction(pose1, action1());

```

calling 
 ps.methodDesirable();

it will call action1() function.

It's possible to do this?

Thanks in advance!