Last active
December 24, 2015 17:29
-
-
Save Fhernd/6836233 to your computer and use it in GitHub Desktop.
Demostración de la diferencia entre campos de instancia y los campos estáticos 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
class Bicicleta | |
{ | |
static int numeroRuedas = 2; | |
private string marca; | |
private string color; | |
public Bicicleta(string marca, string color) | |
{ | |
this.marca = marca; | |
this.color = color; | |
} | |
// métodos mutadores y de acceso | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment