Created
July 30, 2022 16:08
-
-
Save emrodriguez/c4c498962511f523d25631baace5fd8b to your computer and use it in GitHub Desktop.
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 Conexion { | |
private static Conexion instancia; | |
private Conexion() {} | |
public static Conexion getInstancia() { | |
if(instancia == null) { | |
instancia = new Conexcion(); | |
} | |
return instancia; | |
} | |
public void conectar() { | |
System.out.println("Establece la conexion"); | |
} | |
public void desconectar() { | |
System.out.println("Se cierra la conexion"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment