Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created October 8, 2013 04:40
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 Fhernd/6879553 to your computer and use it in GitHub Desktop.
Save Fhernd/6879553 to your computer and use it in GitHub Desktop.
Clase cliente para probar la clase Panda en C#.
public class PruebaPanda
{
public static void Main(string[] args)
{
Panda p1 = new Panda { Nombre = "Pandi" };
Panda p2 = new Panda { Nombre = "Lamy" };
p1.Relacionarse(p2);
Console.WriteLine (p1.Nombre);
Console.WriteLine (p1.Pareja.Nombre);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment