-
-
Save parzibyte/2eda52cd2f6fce33ede81d54d3d92f58 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
class Persona | |
{ | |
public string nombre; | |
public int edad; | |
public Persona(string nombre, int edad) | |
{ | |
this.nombre = nombre; | |
this.edad = edad; | |
} | |
public override string ToString() | |
{ | |
return "Persona con nombre " + this.nombre + " y edad " + this.edad; | |
} | |
public void saludar() | |
{ | |
Console.WriteLine("Me llamo " + this.nombre); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment