private void btnOverride_Click(object sender, EventArgs e) { Child2 child = new Child2(); child.DoOverride(); Father father = new Child2(); father.DoOverride(); }
private void btnNewMethod_Click(object sender, EventArgs e) { Child2 child = new Child2(); child.DoNew(); Father father = new Child2(); father.DoNew(); }