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

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

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

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Sign Up Now
or Subscribe for future quizzes