I am trying to understand immutability without setters. To model a class Person , I generally has variables like name,age,sex and others along with setters and getters. If I want to change the age in future, I can simply call the age setter on the object.
How do I model same thing for a class without setters?.In general I may require to change the age of person, but immutability does now allow it.