Command Interface (ICommand):?
- The ICommand interface defines two methods:
■ Execute(): Executes the command.
■ Undo(): Reverts the command if the user wishes to undo the action.
Follow:
public interface ICommand
void Execute();
void Undo();
■ Execute(): Executes the command.
■ Undo(): Reverts the command if the user wishes to undo the action.
Follow:
public interface ICommand
void Execute();
void Undo();