Immutable class?

What is an immutable object? An immutable object is one that will not change state after it is instantiated. How to make an object immutable? In general, an immutable object can be made by defining a class which does not have any of its members exposed, and does not have any setters. The following class … Read more