Prototype Pattern Code Review

Define the PrototypeManager Object

Code Review

Code Walkthrough

The PrototypeManager class (object) creates a collection of Prototype objects.

class PrototypeManager : IPrototype { public Dictionary<String, ProtoType> prototypes = new Dictionary<String, ProtoType> { {"Germany", new ProtoType("Germany", "Berlin", "German")}, {"Italy", new ProtoType("Italy", "Rome", "Italian")}, {"Australia", new ProtoType("Australia", "Canberra", "English")} }; }