using System;
public class A{
public int x;
protected int y;
private int z;
}
public class B : A{
private int d;
protected int e;
void foo()
{
d = 2;
e = 2;
x=2;
y=2;
public class Program
public static void Main()
B B = new B();
B.x = 1;
//Both x and y will cause a warning as they both hide A.x and A.y.