Last active
December 24, 2015 18:59
-
-
Save Fhernd/6846610 to your computer and use it in GitHub Desktop.
Demostración de constructores no públicos en C#.
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 ConexionBaseDeDatos | |
{ | |
ConexionBaseDeDatos() // constructor privado | |
{ | |
} | |
public static ConexionBaseDeDatos CrearInstancia(...) | |
{ | |
// Conjunto de sentencias de la lógica para retorno de | |
// un tipo de la clase contextual. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment