Skip to Content
Design Patterns in Modern C++20: Reusable Approaches for Object-Oriented Software Design
book

Design Patterns in Modern C++20: Reusable Approaches for Object-Oriented Software Design

by Dmitri Nesteruk
November 2021
Beginner to intermediate
391 pages
5h 23m
English
Apress
Content preview from Design Patterns in Modern C++20: Reusable Approaches for Object-Oriented Software Design
© Dmitri Nesteruk 2022
D. NesterukDesign Patterns in Modern C++20https://doi.org/10.1007/978-1-4842-7295-4_4

4. Prototype

Dmitri Nesteruk1  
(1)
St. Petersburg, Russia
 

Think about something you use every day, like a car or a mobile phone. Chances are, 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’s a natural state of affairs, and in the software world, we get 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 a copy of it (which ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Design Patterns in Modern C++: Reusable Approaches for Object-Oriented Software Design

Design Patterns in Modern C++: Reusable Approaches for Object-Oriented Software Design

Dmitri Nesteruk

Publisher Resources

ISBN: 9781484272954Purchase LinkPublisher Website