Skip to content

Conversation

@Billa32
Copy link

@Billa32 Billa32 commented Aug 16, 2021

Why I did it?
In order to implement Creational pattern I used the sub design of Factory Method in which i had to provide an interface for creating objects in a superclass, but allowing subclasses to alter the type of objects that will be created.

How I did it?
I created a new interface class for location to implement Creational Pattern, where the interface for location class is missing so we just added and interface class in "File Path: app location init.py" to serialize the location into a dict.

Billa32 added 5 commits July 25, 2021 23:24
reason of creating a base_url cause it was assigned hardcoded in scripts and it is better to set hardcoded variables seperately in a class thus created a new baseurl
files that are being used for baseurls.py
Why I did it?
I have used the factory design pattern to do my creational pattern where i had to provide an interface for creating objects in superclass, but allowing subclasses to alter the type of objects that will be created. 
How i did it?
I created a new interface class for location to implement creational pattern and the interface for location class is missing so i just added an interface class and serialized the location into a dict.
Why i did it? 
I had to create a creational pattern and in this case i found the Factory method to be the one. where i created an interface for creating objects in a super class, but allowing subclasses to alter the type of objects that will be created.
How i did it?
I created a new interface class in #init for location to implement creational pattern  and the interface for location class is missing so i just added an interface class and serialized the location into a dict.
@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