using System;
namespace Articulos.Ch03
{
public class ClaseBase
{
protected int X;
public ClaseBase ()
{
X = 1;
}
}
public class Subclase : ClaseBase
{
public Subclase ()
{
Console.WriteLine (X);
}
}
public class ClasePrueba
{
public static void Main()
{
Subclase sc = new Subclase();
}
}
}
dXNpbmcgU3lzdGVtOwoKbmFtZXNwYWNlIEFydGljdWxvcy5DaDAzCnsKICAgIHB1YmxpYyBjbGFzcyBDbGFzZUJhc2UKICAgIHsKICAgICAgICBwcm90ZWN0ZWQgaW50IFg7CiAgICAgICAgcHVibGljIENsYXNlQmFzZSAoKQogICAgICAgIHsKICAgICAgICAgICAgWCA9IDE7CiAgICAgICAgfQogICAgfQogICAgCiAgICBwdWJsaWMgY2xhc3MgU3ViY2xhc2UgOiBDbGFzZUJhc2UKICAgIHsKICAgICAgICBwdWJsaWMgU3ViY2xhc2UgKCkKICAgICAgICB7CiAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lIChYKTsKICAgICAgICB9CiAgICB9CiAgICAKICAgIHB1YmxpYyBjbGFzcyBDbGFzZVBydWViYQogICAgewogICAgCXB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKCkKICAgIAl7CiAgICAJCVN1YmNsYXNlIHNjID0gbmV3IFN1YmNsYXNlKCk7CiAgICAJfQogICAgfQp9