@@ -49,10 +49,10 @@ class Prototype {
4949 * EN: ConcretePrototype1 is a Sub-Class of Prototype and implement the Clone Method
5050 * In this example all data members of Prototype Class are in the Stack. If you
5151 * have pointers in your properties for ex: String* name_ ,you will need to
52- * implement the Copy-Constructor to make sure you have a deep copy from the
52+ * implement the Copy-Constructor to make sure you have a deep copy from the
5353 * clone method
5454 *
55- * RU:
55+ * RU:
5656 */
5757
5858class ConcretePrototype1 : public Prototype {
@@ -66,10 +66,10 @@ class ConcretePrototype1 : public Prototype {
6666
6767 /* *
6868 * EN: Notice that Clone method return a Pointer to a new ConcretePrototype1 replica. so, the client
69- * (who call the clone method) has the responsability to free that memory. I you have
69+ * (who call the clone method) has the responsability to free that memory. If you have
7070 * smart pointer knowledge you may prefer to use unique_pointer here.
7171 *
72- * RU:
72+ * RU:
7373 */
7474 Prototype *Clone () const override {
7575 return new ConcretePrototype1 (*this );
@@ -90,11 +90,11 @@ class ConcretePrototype2 : public Prototype {
9090};
9191
9292/* *
93- * EN: In PrototypeFactory you have two concrete prototypes, one for each concrete
94- * prototype class, so each time you want to create a bullet ,
93+ * EN: In PrototypeFactory you have two concrete prototypes, one for each concrete
94+ * prototype class, so each time you want to create a bullet ,
9595 * you can use the existing ones and clone those.
9696 *
97- * RU:
97+ * RU:
9898 */
9999
100100class PrototypeFactory {
@@ -111,7 +111,7 @@ class PrototypeFactory {
111111 * EN: Be carefull of free all memory allocated. Again, if you have smart pointers knowelege
112112 * will be better to use it here.
113113 *
114- * RU:
114+ * RU:
115115 */
116116
117117 ~PrototypeFactory () {
@@ -123,7 +123,7 @@ class PrototypeFactory {
123123 * EN: Notice here that you just need to specify the type of the prototype you want and the method
124124 * will create from the object with this type.
125125 *
126- * RU:
126+ * RU:
127127 */
128128 Prototype *CreatePrototype (Type type) {
129129 return prototypes_[type]->Clone ();
0 commit comments