Created
June 17, 2020 21:15
-
-
Save luissilvazup/db15deacc4e9da4b8e71c6319f0bae4b to your computer and use it in GitHub Desktop.
OCP Solution Part 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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