LogiQuest
Back to Inheritance
10

What is the output of the following program?

var c = new C();
Console.WriteLine(c.Describe());
class P { public virtual string Describe() => "P"; }
class C : P { public override string Describe() => base.Describe() + "C"; }
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.