Klass object saved into a file

Class Klass is defined and called in another program.
An object is created of the class and the program mashals and unmarshals the object of the class.