static void Main()
    {
        LoadChild c = new LoadChild();

        c.Test();
        c.Test(10);
        c.Show();
        c.Display();
        Console.ReadLine();
    }
Example #2
0
    static void Main()
    {
        LoadChild c = new LoadChild();

        c.Test();           //executes parents Test method
        c.Test(10);         //executes childs Test method
        c.Show();           //executes parents Show method
        c.Display();        //executes parents Display method
        Console.ReadLine();
    }