C Sharp (C#) - Inheritance
Find the error in this C# code:
class Parent { public void Greet() { Console.WriteLine("Hello from Parent"); } } class Child : Parent { public void Greet() { Console.WriteLine("Hello from Child"); } } class Program { static void Main() { Parent p = new Child(); p.Greet(); } }