SyntaxFix
Write A Post
Hire A Developer
Questions
You cannot store a class object into a string using toString(), toString() only returns a String representation of your object-in any way you'd like. You might want to do some reading about Serialization.