https://github.com/julianamancera/factorypattern_example
https://github.com/julianamancera/factorypattern_example
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/julianamancera/factorypattern_example
- Owner: JulianaMancera
- Created: 2024-08-20T00:24:50.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-24T12:59:32.000Z (9 months ago)
- Last Synced: 2024-08-24T13:57:46.184Z (9 months ago)
- Language: Java
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Example Problem
Implement factory design pattern using Pet as the factory interface. The interface implements two methods: makeSound() and play().- Dog and Cat are concrete objects that implements Pet interface.
- PetRecord holds attributes such as petId, petName, and Pet.
- Clinic would be the client object.
- Refer to the UML Class Diagram## Class Diagram
