Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Command Pattern - TV
public class Television implements Device {
@Override
public void on() {
System.out.println("TV is on !!");
}
@Override
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