Mid GoF Patterns

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();

More from Design Patterns in C#

All questions for this course