3 ms·
How an Immutable Object Can Have State and Behavior?
- weinzierl 11y agoWe use immutable objects to improve readability and to make code thread-safe. I'm not sure if first allowing mutable parts and then moving them into a "memory-representing class" helps a lot in this regard.