Design Pattern Riddle #5

q. Some say that I have schizophrenia;
I change my behavior depending on my mood.
You might think I am someone else,
But Iā€™m just a class with an attitude!

a. State

~/riddle by me

If you enjoyed this post, please consider sharing it with others via the following Twitter or Reddit buttons. I also have a YouTube Channel with free web development videos that you are welcome to watch and/or subscribe. As always, you can reach out to me on Twitter at @elijahmanor. Thanks and have a blessed day!

Reddit