From 0d876e949c26c6d0e4f0e7a9fcae473ff1fce56b Mon Sep 17 00:00:00 2001 From: ismayilmalik Date: Sat, 6 Jan 2018 23:49:57 +0400 Subject: [PATCH] implemented prototype pattern --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 83312ad..942097e 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ - [Builder](#builder) - [Factory](#factory) - [Abstract Factory](#abstract-factory) + - [Prototype](#prototype) - [Structural patterns](#structural-patterns) - [Composition](#composition) - [Adapter](#adapter) @@ -40,6 +41,9 @@ instantiate. Factory Method lets a class defer instantiation to subclasses. Provide an interface for creating famili es of related or dependent objects without specifying their concrete classes. +### Prototype +Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this protoype. + ## Structural patterns Structural patterns are concerned with how classes and objects are composed to form larger structures. Structural class patterns use inheritance to compose interfaces or implementations.