Class ConcreteCommandB

java.lang.Object
Behavioral.Command.ConcreteCommandB
All Implemented Interfaces:
Command

public class ConcreteCommandB extends Object implements Command
A concrete implementation of the Command interface for Action B.
  • Constructor Details

    • ConcreteCommandB

      public ConcreteCommandB(Receiver receiver)
      Constructs a ConcreteCommandB instance.
      Parameters:
      receiver - The Receiver instance to operate on.
  • Method Details

    • execute

      public void execute()
      Description copied from interface: Command
      Executes the command.
      Specified by:
      execute in interface Command