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