2.2 Factory Pattern

2.2 Factory Pattern

In this video, I use a combination of the Strategy and Factory patterns to refactor the object creation logic out of main.