Hi arunag.
You can do it,but it's not recommended that you pass class object directly between different process,especially in network, because it's very slow.
Just as Polu says, you can disconstruct the class object into a string - send it - rebuild object from string.
Best Regards.
Mac Wang.