Immutability in programming [draft]

One of the ways I like designing immutable classes is having no setter methods and only one constructor. So we know that an instance will have only one way of constructing. It documents its usage itself, it will only have one state.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments