I have created this desktop application using JavaFX and I am required to apply any one GoF pattern to the membership page (could be to do with anything, adding, upgrading, etc).
I tried applying the factory pattern but i can't seem to get the right logic.
There is was my membership page looks like:
Basically the upgrade button upgrades the member to loyalty if they have minimum 10 sessions. The rest of the buttons basically add/update/delete the member from the database.
The way I have created this is have an fxml file for the layout and its controller, where all the implementation is in.
Can someone please help me apply any GoF pattern here? Thanks
Aucun commentaire:
Enregistrer un commentaire