Skip to content

Conversation

@dengrf96
Copy link

What:
Added factory design pattern for the creation of different locations

Why
Different locations have similar parameters with minor differences while creating, so creating them with a factory method makes code more readable and easier to compare the logic of the creation

How
Created a factory class and a creation method for all different types of locations, replace invocation of original location constructor with a method call

@dengrf96 dengrf96 changed the title Apply Creational Design Pattern Adding Creational Design Pattern Aug 15, 2021
@Kilo59 Kilo59 closed this Aug 21, 2021
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