public abstract class A 
{ 
     public virtual string Print(){return "A";} 
}

 public class B:A 
{ 
    public virtual new string Print(){return "B";} 
} 

public class C:B 
{
      public override string Print(){return "C";}
 }
 
What will be the result of the following code execution?
 
A ac = new C(); 
Console.WriteLine(ac.Print());
 

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты