Skip to content

Conversation

@lilywuyanru
Copy link

@lilywuyanru lilywuyanru commented Aug 16, 2021

Add creational pattern by creating location factory

The changes are accomplished by creating a LocationFactory class and the get_location factory method. When a user calls the get_location method, we pass in the source string and the return value will be one of the LocationService object based on the source passed in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants