...

/

Solution: Factory Method

Solution: Factory Method

Get a detailed explanation of the solutions to the factory methods exercises.

Solution to the first problem

Here is the refactored code using std::shared_ptr.

Access this course and 1400+ top-rated courses and projects.