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