static void Main() { LoadChild c = new LoadChild(); c.Test(); c.Test(10); c.Show(); c.Display(); Console.ReadLine(); }
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(); }