Skip to content

Instantly share code, notes, and snippets.

@luissilvazup
Created June 17, 2020 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luissilvazup/db15deacc4e9da4b8e71c6319f0bae4b to your computer and use it in GitHub Desktop.
Save luissilvazup/db15deacc4e9da4b8e71c6319f0bae4b to your computer and use it in GitHub Desktop.
OCP Solution Part 2
public class O_OpenClosedSolution {
@AllArgsConstructor
private static class AuthenticateLogin {
private Authentication authentication;
public boolean login(User user){
return authentication.login(user);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment