Created
October 5, 2013 16:46
-
-
Save Fhernd/6843178 to your computer and use it in GitHub Desktop.
Demostración de la definición de un constructor de instancia 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 Usuario | |
{ | |
string name; // Definición de campo de instancia. | |
public Usuario(string n) // Definición del constructor de instancia | |
{ | |
name = n; // Sentencia de inicialización | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment