using System;
public class Test
{
class ClaseBase
{
public void F() {}
}
class ClaseDerivada: ClaseBase
{
public void F() {} // Advertencia. OcultaciĆ³n de miembro heredado.
}
public static void Main()
{
ClaseBase cb = new ClaseBase();
cb.F();
ClaseDerivada cd = new ClaseDerivada();
cd.F();
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJY2xhc3MgQ2xhc2VCYXNlCgl7CgkgICAgcHVibGljIHZvaWQgRigpIHt9Cgl9CgljbGFzcyBDbGFzZURlcml2YWRhOiBDbGFzZUJhc2UKCXsKCSAgICBwdWJsaWMgdm9pZCBGKCkge30gICAgICAgICAgLy8gQWR2ZXJ0ZW5jaWEuIE9jdWx0YWNpw7NuIGRlIG1pZW1icm8gaGVyZWRhZG8uCgl9CgkKCXB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKCkKCXsKCQlDbGFzZUJhc2UgY2IgPSBuZXcgQ2xhc2VCYXNlKCk7CgkJY2IuRigpOwoJCQoJCUNsYXNlRGVyaXZhZGEgY2QgPSBuZXcgQ2xhc2VEZXJpdmFkYSgpOwoJCWNkLkYoKTsKCX0KfQ==