Created
May 4, 2020 17:19
-
-
Save DannyRusnok/e7e7b24cbcdff25fe751f6c50bbad0cf to your computer and use it in GitHub Desktop.
State Pattern Dog class
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 Dog | |
{ | |
private bool sleep; | |
public void Bark(){ | |
if(sleep){ | |
// proceed to barking | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment