using System;
using System.Collections.Generic;
public class A
{
private int x;
protected int y;
public int z;
}
public class B:A{
public int d;
protected int e;
private int f;
public int x;
public int y;
public void Foo(){
x = 2;
y = 2;
z = 2;
d = 2;
e = 2;
f = 2;
public class Program
public static void Main()
A A = new A();
A.z = 1;
B B = new B();
B.d = 1;
B.z = 1;