C Sharp (C#) - Inheritance
What will be the output of this C# code?
class Animal { public void Speak() { Console.WriteLine("Animal speaks"); } } class Dog : Animal { } class Program { static void Main() { Dog d = new Dog(); d.Speak(); } }