using System;
class A
{
private int a;
protected int b;
public int c;
class B{
private int d;
protected int e;
}
public static void Main()
class program{
public program{
program B = new program();
public int foo{
/*
If I try to define public integer fields a and b in class B , what will happen? Which one
will cause a compilation warning? Why do you think the result is like that? Put your
answer and reasoning as comment in the source code.
*/
/*My answer
The program will have error as there is private integer filed a and protected integer field b already. Then the program would not be able to understand which a and b are referring to.