Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Last active December 24, 2015 17:29
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/6836233 to your computer and use it in GitHub Desktop.
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#.
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