public abstract class A {
public string PublicPrint() {
return Print();
}
protected virtual string Print() {
return "A";
}
}
public class B : A { }
public class C : B {
protected override string Print() {
return "C";
}
}
What will be the result of the following code execution?
A ac = new C();
Console.WriteLine(ac.PublicPrint());
Login in to like
Login in to comment