CSC207-fiveguys / music-java-app

MIT License
1 stars 1 forks source link

Usage of Factory Design Pattern for creating Entities #12

Closed HussainE4 closed 11 months ago

HussainE4 commented 11 months ago
<!DOCTYPE html> name about title labels assignees
Hussain Elahi Using Factory classes for creating entities Usage of Factory Design Pattern for creating Entities question

Currently, there is a Factory class for creating instances of the User Entity, however there are no such classes for the other entities. For consistency, we should either create Factory classes for all of the other entities or remove the User Factory. As a criterion for the project presentation is that we use at least 2 appropriate design patterns, I believe that we should create Factory classes for all of the other entities

Screenshot 2023-11-24 at 10 49 54 PM Screenshot 2023-11-24 at 10 50 13 PM
HussainE4 commented 11 months ago

We created Factory classes for all of the entities