An open API service indexing awesome lists of open source software.

https://github.com/julianamancera/factorypattern_example


https://github.com/julianamancera/factorypattern_example

Last synced: 3 months ago
JSON representation

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
![image](https://github.com/user-attachments/assets/62d08be8-6896-4656-9d3d-1146d0558b7c)