How to implement the factory method pattern in C++ correctly
First of all, there are cases when object construction is a task complex enough to justify its extraction to another class. I believe this point is incorrect. The complexity doesn’t really matter. The relevance is what does. If an object can be constructed in one step (not like in the builder pattern), the constructor is … Read more