using System;
public class A
{
public int x;
protected int y;
private int z;
}
public class B : A
private int d;
protected int e;
public void Foo()
x = 2;
y = 2;
d = 2;
e = 2;
public int x; // 'B.x' hides inherited member 'A.x'
public int y; // 'B.y' hides inherited member 'A.y'
pubilc int z; // compilation warning since z is a private field in class A
public class Program
public static void Main()
B test = new B();
test.x = 1;