Skip to content

Creation Pattern applied#3

Open
seanli66 wants to merge 1 commit intomasterfrom
CreationalPattern
Open

Creation Pattern applied#3
seanli66 wants to merge 1 commit intomasterfrom
CreationalPattern

Conversation

@seanli66
Copy link
Owner

Builder pattern is applied to the Location and TimelinedLocation classes. This builder utilized all the smaller classes (like GeoInfo, Statistics etc.) and construct the final product in a more aggregated and extensible way. LocationBuilder and TimelinedLocationBuilder inherit the abstract Builder class and implement the functions to build the product. Location and TimelinedLocation are the final product. Subclasses like GeoInfo, Base and Statistics are to assemble the final product. Director is to give instruction depending on what Builder is selected

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.

1 participant