I am wondering how would I ensure that when an instance has been created that it is then impossible to change whatever is being passed through that instance. Therefore data can only can be created once.
I have a class with get and set methods of an accountNo and SortCode, how would I ensure that when this instance is called within a main method, then it can't be changed afterwords.
Thanks