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

Incumpliendo el principio ISP #3

Open
ferbucheli opened this issue Nov 12, 2021 · 0 comments
Open

Incumpliendo el principio ISP #3

ferbucheli opened this issue Nov 12, 2021 · 0 comments

Comments

@ferbucheli
Copy link

Se encontró que se esta obligando a implementar comportamientos a la clase Robot que no son requeridos

Solucion

public interface Worker{

work();
}

public interface Feedable{

eat();
}

public class Human implements Feedable, Worker{

}

public class Robot implements Worker{

}

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