Skip to content

Instantly share code, notes, and snippets.

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/987b255c2a14cc87c5060f6d0d6e24fe to your computer and use it in GitHub Desktop.
Save luissilvazup/987b255c2a14cc87c5060f6d0d6e24fe to your computer and use it in GitHub Desktop.
SRP Solution Part 3
public class S_SingleResponsabilitySolution {
private static class AuthenticateLogin {
public boolean login(User user) {
ConnectionDAO connectionDAO = new ConnectionDAO("root", "");
Connection connection = connectionDAO.createConnection();
//realiza o login do usuário no sistema
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment