Hi everyone, so i recently read about XML and saving data from classes and load it back in, but all examples I've seen only focus on single classes with no interfaces or inherited classes, so I'm alittle confused about how i can do this en a easy way.
My program have 1 abstract super class that have multiple child classes and child-child classes, I'll try to make a class diagram here below:
Superclass --> FirstChild --> SecondChild
Superclass --> ThirdChild
SomeRandomConstantClass (to hold some Items needed by FirstChild)
Everyone of them is putted in a list of super classes (to be able to have everything in one place) but i now wanna know how i i simply can save every data to a single XML and then load it back into the list/classes when clicking a load button?
As I said I've seen it on a single class how to do it with single items, but not with multiple items and inheritance so it would be awesome if some people could provide some useful sample code or articles on how to.
Thanks - Jackie