Blog

Seleccione el resultado del siguiente código:

public class OuterClass {
public int i = 0;

public class InnerClass:OuterClass {
public InnerClass() {
Console.Write(” InnerClass {0} “, ++i);
}
}

OuterClass() {
Console.Write(” OuterClass {0} “, i);
}
}

class Program {
static void Main(string[] args) {
OuterClass.InnerClass inn = new OuterClass.InnerClass();
}
}