-
-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uso de Patrones de diseño #20
Comments
I created an interface name PersonFactory and in that two methods were decalred createborrower() and createStaff(). createBorrower () in borrower class prompts user for borrower information(ID,Name,Address,Phone No) and then created a new instance of borrower createStaff() in staff prompts user for staff information (ID, Name, Address, Phone number, Salary) and creates new instance of staff with these values. |
Buenos días/tardes/noches
![image](https://private-user-images.githubusercontent.com/139655259/290972694-2a617a5c-1619-4918-9f0e-b13020b4cd03.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3NzQ5ODMsIm5iZiI6MTcxODc3NDY4MywicGF0aCI6Ii8xMzk2NTUyNTkvMjkwOTcyNjk0LTJhNjE3YTVjLTE2MTktNDkxOC05ZjBlLWIxMzAyMGI0Y2QwMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxOVQwNTI0NDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wMTUwYjZkMTlhZDA0Y2QxYzBmMDIwYWM0NDY1YmE0YmM2NTdjMjZhMTIxNmY2ODU5OGIwOGVhM2JkNDM2MDFmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.kxDb5i8vR7HBMBG7wtG6LSwHh8jOUmTQwFsXBJjDYlc)
Se ha encontrado una posible aplicación para el manejo de las familias de objeto relacionados a la clase Person, haciendo uso del patron de diseño Abstract Facthory se puede mejorar la instanciación de los objetos relacionados a la clase Person(Familias de objetos) , tales como Borrower o Staff con el uso de interfaces, espero les ayudo al mejoramiento de su proyecto.
Adjunto diagrama UML
The text was updated successfully, but these errors were encountered: