| Article: |
Form Your Own Design Pattern Study Group | |
| Subject: | solution for undo() method in MacroCommand | |
| Date: | 2009-06-07 19:48:37 | |
| From: | mkrk | |
|
This is with refrence to the solution provided for undo() method in the MacroCommand. The solution provided was : for (int i = 0; i < commands.length; i++ ) { commands[i].execute(); } I believe this solution is wrong. When the undo is called it should undo the last command first then go all the way to 1st command. It should be
|
||
Women in Technology
Hear us Roar
