I have List<Animal>, but there are subclasses in this list Animal, such as Mammal.
I have to support it using the [Serializable] interface, and this is not a problem, except when I read it again, I have no idea which subclass the data was received from when it came time to restore the information.
So the question is how to store this information?
source
share