- All Implemented Interfaces:
Command
A concrete implementation of the Command interface for Action B.
-
Constructor Summary
Constructors
Constructs a ConcreteCommandB instance.
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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