Thanks for the answer, it does make sense :)
Just to make sure I understand it right the main difference it is on the return object.
They both will use an interface for the object creation.
Factory returns a "simple" object usually a type of something, can be an animal(cat,dog...) Or maybe employee type.
Strategy will return an algorithm that does something, maybe two different installation process or analyzing method.
UserEcho 的客户支持
Thanks for the answer, it does make sense :)
Just to make sure I understand it right the main difference it is on the return object.
They both will use an interface for the object creation.
Factory returns a "simple" object usually a type of something, can be an animal(cat,dog...) Or maybe employee type.
Strategy will return an algorithm that does something, maybe two different installation process or analyzing method.