Design patterns – Prototype (creational) – library MetaTrader 5
//—prototype——————————————————– // creational design pattern // —intent // create objects by copying a prototype // —benefits—————————————————— // class of object that is instantiated may vary // —refactoring problem // creating an object by specifying a class explicitly // —solution // create objects indirectly // also abstract factory, factory method // —applicability ———————————————— // classes to instantiate are specified at run-time // no … Read more