Advertisement
Fhernd

PruebaPanda.cs

Nov 13th, 2017
1,931
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. public class PruebaPanda
  2. {
  3.     public static void Main(string[] args)
  4.     {
  5.         Panda p1 = new Panda { Nombre = "Pandi" };
  6.         Panda p2 = new Panda { Nombre = "Lamy" };
  7.        
  8.         p1.Relacionarse(p2);
  9.        
  10.         Console.WriteLine (p1.Nombre);
  11.         Console.WriteLine (p1.Pareja.Nombre);
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement