November 2019
Beginner to intermediate
674 pages
15h
English
In addition to techniques discussed in this chapter, we can also use the memento pattern (also known as serialization) to clone objects. As an example, I have created a project PrototypeJSON, which converts an object into a JSON string and then creates a new object from that string. If you examine the project, you'll also notice that I had to remove the TStream internal field because it was not correctly handled. We will learn to deal with such problems in Chapter 15, Iterator, Observer, Visitor, and Memento.
Read now
Unlock full access