Skip to content

Instantly share code, notes, and snippets.

Created August 1, 2021 11:36
What would you like to do?
Command Pattern - TV
public class Television implements Device {
public void on() {
System.out.println("TV is on !!");
public void off() {
System.out.println("TV is off !!");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment