Class ConcreteCommandA

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

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

    • ConcreteCommandA

      public ConcreteCommandA(Receiver receiver)
      Constructor to initialize the ConcreteCommandA.
      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