5.
public class A { protected int x = 123; } class B : A { public static void Main() { A a = new A(); B b = new B(); Console.WriteLine(a.x); } }
Whats the result of the above
View Description
Cannot access protected member 'A.x' via a qualifier of type 'A'; the qualifier must be of type 'B' (or derived from it)