The Prototype Pattern

  • Adam Freeman


In this chapter I describe the prototype pattern, in which you create new objects by copying an existing object, known as the prototype. The prototype itself is created using a template, as described in Chapter 4, but subsequent instances are clones. Table 5-1 puts the prototype pattern in context.


Base Class Appointment Object Reference Type Message Class Prototype Pattern 

Copyright information

© Adam Freeman 2015

Authors and Affiliations

  • Adam Freeman
    • 1
  1. 1.ChicagoUnited States

Personalised recommendations