CSC207-2022F-UofT / course-project-bill-gates

A bill recording software developed by team "Bill Gates."
9 stars 4 forks source link

implment a userfactory, Iuser interface, 1.0 #19

Closed Yuhan-Ut closed 1 year ago

Yuhan-Ut commented 1 year ago

userfactory entity and add a shared interface of user and dummyuser

Yuhan-Ut commented 1 year ago

[*]modify UserFactory so it can set or store temporary instance and use those instance to generate User/dummyuser in getuser function

[*]Modify Iuser, so this interface include abstract functions supposed to return instance of user and dummyuser,(may add more function later)

[+]Add constructor for Userfactory

[+]Add quickGetUser in Userfactory, using default value stored to create desired type User

[*]cleaning up some Redundant code in UserFactory

ps. this is modified from a history version of your branch, I am not sure if this will cover your changes, sorry for the inconvenient and this uncertainty.