Prototype design pattern
In 1994, a group called the Gang of Four classified pattern designs into three general categories. Design patterns developed to manage the creation of objects are called creational design patterns. A prototype design pattern is…