Where exactly does serialization comes into the picture? I read about serializtion on the \'net and I have come to know that
it is an interface that
For example when you want to send objects over network or storing them into files.
Lets say you're creating a Savegame-format for a video-game. You then could make the class Player
and every Enemy
serializable. This way it would be easy to save the state of the current objects into a file.
On the other end, when writing a multiplayer-implementation for your game, you could send the Player
serialized via network to the other clients, which then could handle these data.