using System;
class A
{
public int x;
protected int y;
private int z;
}
class B: A
private int d;
protected int e;
public void Foo(){
x = 2;
y = 2;
d = 2;
e = 2;
public class Program
public static void Main()
B objB = new B();
objB.x = 1;
/**
Define public integer fields x, y in class B will cause warning since x and y is already defined in class A and class B can acces them.
Howevere, z is privated in class A so class B cannot access it in itself and therefore, we can set up a public int z in class B.
**/