Skip to content

Instantly share code, notes, and snippets.

@anjanashankar9
Created August 1, 2021 11:36
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