Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Last active December 19, 2015 05:09
Show Gist options
  • Save Fhernd/5902480 to your computer and use it in GitHub Desktop.
Save Fhernd/5902480 to your computer and use it in GitHub Desktop.
Clase cliente PandaPrueba para la demostración del uso miembros estáticos.
// Clase cliente para prueba de clase ConvertidorUnidades
class PandaPrueba
{
static void Main()
{
Panda p1 = new Panda("Pan Dee");
Panda p2 = new Panda("Pan Dah");
Console.WriteLine(p1.Nombre); // Pan Dee
Console.WriteLine(Panda.Poblacion); // 1
Console.WriteLine(p2.Nombre); // Pan Dah
Console.WriteLine(Panda.Poblacion); // 2
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment