new public class MyClass // nested type hiding the base type members
{
public int x = ;
public int y;
public int z;
}
public static void Main()
{
// Creating object from the overlapping class:
MyClass S = new MyClass();
// Creating object from the hidden class:
MyBaseCMyClass S = new MyBaseCMyClass();
ConsoleWriteLine(Sx);
ConsoleWriteLine(Sx);
}
}
输出
[] [] []