static void Main()
    {
        // Simpler code to demonstrate the point
        ObjectParent parent = new ObjectChild();

        parent.Foo();     // Prints ObjectChild.Foo
    }