patterns/state/ #102
Replies: 2 comments
-
|
Every call mammoth.timePasses(); create a new instance. Would it be better for memory if we used a single instance? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
we have link in each State implementation only for printing the name "Mammoth"? :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
patterns/state/
Explore the State Pattern, a core component of Java design patterns that enables dynamic behavior change in objects with internal state shifts. Includes real-world examples, applicability, benefits, and detailed code snippets.
https://java-design-patterns.com/patterns/state/
Beta Was this translation helpful? Give feedback.
All reactions