I'm writing a program that writes a Player file using an ObjectOutputStream is there a way to easily update old Objects that have been read, into new Objects with the newly added method calls?
Old 'A' saved object has;
New 'B' object type has;
Clearly when I load object 'A' from the Player class, and then call getAge() I get a NullPointerException due to the object 'A' not having the version 2s ('B's) getAge() method. Is there a simple way to "upgrade" my objects as they are read in?
I hope that I'm making sense