Serialization and Deserialization
In Chapter 13 we gained knowledge of classes and objects. This chapter will extend our knowledge and explain how we can save an object so it can be recreated when required. The processes we will investigate are called serialization and deserialization. By serializing we are saving the state of the object. We will also require some of the knowledge we gained in Chapter 16 on file handling as we will write binary data , XML data, and JSON data to a file as part of the serialization process.
Serialization is ...