Last active
December 24, 2015 23:19
-
-
Save Fhernd/6879468 to your computer and use it in GitHub Desktop.
Demostración de la referencia this en C#.
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
public class Panda | |
{ | |
public string Nombre { get; set;} | |
public Panda Pareja { get;set;} | |
public void Relacionarse (Panda companiero) | |
{ | |
Pareja = companiero; | |
companiero.Pareja = this; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment