C Sharp (C#) - Polymorphism and Abstract Classes
What will be the output of this C# code?
class Animal { public virtual string Speak() => "Animal sound"; }
class Dog : Animal { public override string Speak() => "Bark"; }
Animal a = new Dog();
Console.WriteLine(a.Speak());