answersLogoWhite

0

Object serialisation simply means saving an object's members to a file, to be reloaded at a later time. The object itself should handle its own serialisation, given an archive object. The archive object determines if the object is to insert its members to the file or to extract them from the file. Objects that support serialisation must be capable of instantiating themselves through serialisation, usually by passing an archive object to the object's constructor.

Objects that contain other objects as members do not need to know how to serialise those objects, since every object should take care of its own serialisation. The containing object simply calls each object's serialise method, passing it the archive object. The only real requirement is that all members must be serialised in the same sequence, whether saving or loading, as all data is saved sequentially.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is the role of object in c plus plus?

An object in C++ is an instance of a C++ class.


Which is best C or C plus plus?

depends what you use it for. c++ = object oriented c = not object oriented


Is c plus plus 100 percent object oriented?

No; C++ is not 100% object oriented.


What is object in c plus plus?

An object is simply an instance of a class.


What is meaning Serialize in java?

Primary purpose of java serialization is to write an object into a stream, so that it can be transported through a network and that object can be rebuilt again. When there are two different parties involved, you need a protocol to rebuild the exact same object again. Java serialization API just provides you that. Other ways you can leverage the feature of serialization is, you can use it to perform a deep copy. Why I used 'primary purpose' in the above definition is, sometimes people use java serialization as a replacement for database. Just a placeholder where you can persist an object across sessions. This is not the primary purpose of java serialization. Sometimes, people say that java serialization is used for storing (to preserve the state) an object and retrieving it. They use it synonymously with database. This is a wrong perception for serialization.


Is c plus plus an object oriented language or an object based language?

C++ is object-oriented. It is not object-based because, like C before it, C++ supports the principal of primitive data types, which are not object-based.


What is the significance of c plus plus?

C++ is an object oriented programming language


What is the different of c and c plus plus?

c is procedure oriented and c++ is object oriented & much newer.


Can you use c in c plus plus without using class and object?

Sure.


What is the process of writing the state of an object to a byte stream called?

This is called serialization.


What is the default serialization used for ASPNet Ajax calls?

JavaScript Object Notation


What is 'this' pointer in c plus plus?

Address of the current object.