SE450: Taxonomy: Advantages of Immutable Objects [57/63] Previous pageContentsNext page

Immutable objects do not change.

Aliasing does not matter!

We can freely copy references without fear that the object will change.

This has several corollaries:

Guideline: make all data classes immutable

Previous pageContentsNext page