DEV Community

Discussion on: Factory Method Design Pattern

Collapse
 
patzistar profile image
Patrick Schadler

You‘re right. An enumeration would be totally fine as well. I leave this to personal preference, this particular example is to demonstrate a very simplified usage.