C Sharp (C#) - Polymorphism and Abstract Classes
What will be the output of this C# code?
class Base { public virtual string GetName() => "Base"; } class Derived : Base { public override string GetName() => "Derived"; } class Program { static void Main() { Base obj = new Derived(); Console.WriteLine(obj.GetName()); } }