I don't know if this is possible, and that is why I need your help.
What I want to do is that I want to add objects to a Vector. The problem is that the objects are created in another class.
Is it possible? 

Here is my code:

```
class Factory {    

    public Factory() {                       
        Action run = new RunAction();
        Action climb = new ClimbAction();
    }
}

public class Game {

    private Vector<Action> actions = new Vector<Action>();

    public  Game(Factory fact) {

        actions.add(XXXX);   ****//What to write here to add the actions created in Factory? Somehow I want to use fact for this.**

     }
 }

 class ClimbAction extends Action {

     public ClimbAction() {
         super("Try to climb\n");
     }
 }

 class RunAction extends Action {

     public RunAction() {
         super("Try to run\n");
     }
 }

 class TestClass {

      Factory f = new Factory();
      Game game = new Game(f);
 }

```