© Dmitri Nesteruk 2019
Dmitri NesterukDesign Patterns in .NEThttps://doi.org/10.1007/978-1-4842-4366-4_5

5. Prototype

Dmitri Nesteruk1 
St. Petersburg, c.St-Peterburg, Russia

Think about something you use every day, like a car or a mobile phone. Chances are that it wasn’t designed from scratch; instead, the manufacturer chose an existing design, made some improvements, made it visually distinctive from the old design (so people could show off) and started selling it, retiring the old product. It is a natural state of affairs, and in the software world, we have a similar situation: Sometimes, instead of creating an entire object from scratch (the Factory and Builder patterns can help here), you want to take a preconstructed object and either use ...

Get Design Patterns in .NET: Reusable Approaches in C# and F# for Object-Oriented Software Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.