https://refactoring.guru/design-patterns/prototype
- Prototype is a creational design pattern that lets you copy existing objects without making your code dependent on their classes.
- A fully initialized instance to be copied or cloned
- Use the Prototype pattern when your code shouldn’t depend on the concrete classes of objects that you need to copy.
- Use the pattern when you want to reduce the number of subclasses that only differ in the way they initialize their respective objects.
https://refactoring.guru/design-patterns/prototype#checklist
python main.py
python example.py