Created
August 10, 2017 04:30
-
-
Save Fhernd/6dbf08e029748f548ea2a479eb4ae247 to your computer and use it in GitHub Desktop.
Definición de la clase Persona.
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
using System; | |
namespace cap07.usoienumerator | |
{ | |
public class Persona | |
{ | |
private string nombre; | |
private string apellido; | |
public Persona(string nombre, string apellido) | |
{ | |
this.nombre = nombre; | |
this.apellido = apellido; | |
} | |
public String Nombre | |
{ | |
get | |
{ | |
return nombre; | |
} | |
} | |
public String Apellido | |
{ | |
get | |
{ | |
return apellido; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment