Factory method also known as a static class is a creational design pattern, i.e. it is related to object creation.
Read this article to understand Factory Pattern in C++ in depth
Have a doubt or thought? Join the discussion now
This is a companion discussion topic for the original entry at http://iq.opengenus.org/factory-pattern-cpp/