Why do we need object Serialization in C++? : <p>Do we always need to serialize the object in c++ if we want to persist that object or to transfer over network, or in special cases only.</p>

<p>For instance if I have an object of the class </p>

<pre><code>class Test
{
int a;
char b;
float c;
};
</code></pre>

<p>i.e. it contains only primitive types do I need to serialize it?</p>
