Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created June 24, 2021 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/2eda52cd2f6fce33ede81d54d3d92f58 to your computer and use it in GitHub Desktop.
Save parzibyte/2eda52cd2f6fce33ede81d54d3d92f58 to your computer and use it in GitHub Desktop.
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