Skip to content

Commit 8cf5bcc

Browse files
authored
State design pattern.
1 parent e4cf389 commit 8cf5bcc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Behavioral/state.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# ------------------------------
2+
# State Design Pattern
3+
# ------------------------------
4+
# Allow an object to alter its behavior when its internal state changes. The object will appear to change its class.
5+
16
from abc import ABC, abstractmethod
27

38
class State(ABC):

0 commit comments

Comments
 (0)