When you need to save the object with serialization. Class has a context that can't be serialized, so if you want to save the entire object you can't use a class
When you need to save the object with serialization. Class has a context that can't be serialized, so if you want to save the entire object you can't use a class