using System;
public class Test
{
class A
{
public void print()
{
Console.WriteLine("Class A");
}
}
class B : A
{
public void print()
{
Console.WriteLine("Class B");
}
}
static void Main(string[] args)
{
B b = new B();
b.print();
((A)b).print();
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewpjbGFzcyBBCnsKICAgIHB1YmxpYyB2b2lkIHByaW50KCkgCiAgICB7CiAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoIkNsYXNzIEEiKTsKICAgIH0KfQoKY2xhc3MgQiA6IEEgCnsKICAgIHB1YmxpYyB2b2lkIHByaW50KCkKICAgIHsKICAgICAgICBDb25zb2xlLldyaXRlTGluZSgiQ2xhc3MgQiIpOwogICAgfQp9CgogICAgc3RhdGljIHZvaWQgTWFpbihzdHJpbmdbXSBhcmdzKQogICAgewogICAgICAgIEIgYiA9IG5ldyBCKCk7CiAgICAgICAgYi5wcmludCgpOwogICAgICAgICgoQSliKS5wcmludCgpOwogICAgfQp9