# What is Prototype Design Pattern The prototype pattern is a creational design pattern. It is used when the type of objects to create is determined by a prototypical instance, which is cloned to produce new objects. ## Diagram ![Diagram](https://github.com/premaseem/DesignPatternsJava9/blob/prototype/diagrams/sequence%20diagram.png "Diagram") ### When to use Prototype Design Pattern Prototype design pattern is used in scenarios where application needs to create a number of instances of a class, which has almost same state and when there is need to avoid creating objects using new keyword. ### Learn Design Patterns with Java by Aseem Jain This repository contains working project code used in video Course by Packt Publication with title "Learn Design Patterns with Java " authored by "Aseem Jain". ### Course link: https://www.packtpub.com/application-development/learn-design-patterns-java-9-video ### ![ http://in.linkedin.com/in/premaseem](https://github.com/premaseem/DesignPatternsJava9/blob/master/linkedin.png "http://in.linkedin.com/in/premaseem") Profile: http://in.linkedin.com/in/premaseem ### Authors blog on design patterns: https://premaseem.wordpress.com/category/computers/design-patterns/ ### Software Design pattern community face book page: https://www.facebook.com/DesignPatternGuru/ ### Note: * This code base will work on Java 9 and above versions. * `diagrams` folders carry UML diagrams. * `pattern` folder has code of primary example. * `patternBonus` folder has code of secondary or bonus example.