Consider a C++ class Document which holds a text content usi…
Consider a C++ class Document which holds a text content using a std::string (which internally utilizes pointers to manage its data) and an integer representing the document length. The class is represented in-memory with pointers facilitating dynamic memory management, while it is serialized to disk without using pointers.Here’s an outline of the class and its serialization method:class Document {public: std::string text; int length; void serialize(std::ofstream& out) { length = text.length(); out.write(reinterpret_cast(&length), sizeof(length)); out.write(text.c_str(), text.length()); }};Which statement best captures the distinction between the in-memory and on-disk representations of the Document object regarding pointer usage?