static void Main(string[] args) { B b = new B(); Console.WriteLine(b.a); // 2 Console.WriteLine((b as A).a); // 10 }