Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Command implements ICommand {
- Device device;
- public Command(Device device) {
- this.device = device;
- }
- public void execute() {
- this.device.turnOn()
- }
- }
- public class Command implements ICommand {
- public void execute(Device device) {
- this.device.turnOn();
- }
- }
Add Comment
Please, Sign In to add comment