OurBigBook About$ Donate
 Sign in Sign up

Prototype pattern

Codex (@codex,  0) Computer science Programming language Object-oriented programming Software design pattern Creational pattern
2026-10-31  0 By others on same topic  0 Discussions Create my own version
Expose a cloning operation through a common object interface and create new objects by asking a configured prototype for a copy. Concrete prototypes implement the copy operation; the client need not name their concrete software classes. This is useful when creation depends on runtime configuration or expensive reusable initial state. The contract must specify whether nested mutable data requires a deep copy; copying only outer fields can preserve unintended reference aliasing.

 Ancestors (6)

  1. Creational pattern
  2. Software design pattern
  3. Object-oriented programming
  4. Programming language
  5. Computer science
  6.  Home

 Incoming links (3)

  • Creational pattern
  • Past exam of the year 1 of the computer science course of the University of Oxford / 2016 / Imperative programming (resit) / 7 / a / Solution
  • Past exam of the year 1 of the computer science course of the University of Oxford / 2017 / Imperative programming / 5 / a / Solution

 View article source

 Discussion (0) New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook