Skip to content
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

Large Class 2 #4

Open
PaulaPeraltaA opened this issue Jan 14, 2023 · 0 comments
Open

Large Class 2 #4

PaulaPeraltaA opened this issue Jan 14, 2023 · 0 comments

Comments

@PaulaPeraltaA
Copy link

Con respecto a las clases super grandes como ChargingStation que incumple con el principio SRP al tener demasiadas responsabilidades y un alto acoplamiento, se tiene como solución el uso del refactoring Extract Subclass que consiste en crear una clase macro y que hereden varias subclases de ella, haciendo esto se tiene un código más limpio y clases más cortas favoreciendo la legibilidad del programa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant