Guest User

Untitled

a guest
Jun 18th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public class Command implements ICommand {
  2.  
  3. Device device;
  4.  
  5. public Command(Device device) {
  6. this.device = device;
  7. }
  8.  
  9. public void execute() {
  10. this.device.turnOn()
  11. }
  12. }
  13.  
  14. public class Command implements ICommand {
  15.  
  16. public void execute(Device device) {
  17. this.device.turnOn();
  18. }
  19.  
  20. }
Add Comment
Please, Sign In to add comment