Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Last active December 24, 2015 20:59
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/6862113 to your computer and use it in GitHub Desktop.
Save Fhernd/6862113 to your computer and use it in GitHub Desktop.
Esta clase nos sirve para mostrar la utilidad de los inicializadores de objeto en C#.
class Laptop
{
public string Marca;
public string Modelo;
public string Procesador;
public double TamanioPantalla;
public Laptop ()
{
// ...
}
public Laptop (string marca, string modelo)
{
Marca = marca;
Modelo = modelo;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment