Created
August 1, 2021 11:36
-
-
Save anjanashankar9/51845876f16828153f8d4fba05909865 to your computer and use it in GitHub Desktop.
Command Pattern - TV
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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