Skip to content

Conversation

@Vimarsh-98
Copy link

For my structural pattern I decided to use a composite pattern.

How I did it:
I applied a composite pattern to location/csbs.py and location/nyt.py. I created a new file named serialize which has the class serialize, this serializes the location into a dict. Both csbs.py and nyt.py were using the same method, so I created a separate class and imported it in csbs.py and nyt.pt. Composite pattern is used to group objects that are treated the same way as a single instance.

@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