Created
July 5, 2013 21:52
-
-
Save Fhernd/5937489 to your computer and use it in GitHub Desktop.
Prueba de la estructura Punto.
This file contains hidden or 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
static void Main() | |
{ | |
Punto punto1 = new Punto(); | |
punto1.X = 7; | |
Punto punto2 = punto1; // La asignación crea una copia | |
Console.WriteLine(punto1.X); // 7 | |
Console.WriteLine(punto2.X); // 7 | |
punto1.X = 9; // Cambia a punto1.X | |
Console.WriteLine(punto1.X); // 9 | |
Console.WriteLine(punto2.X); // 7 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment