private void button3_Click(object sender, EventArgs e) { BaseClass b = new DerivedClass("1", "2"); b.MyMethod(); }
private void button2_Click(object sender, EventArgs e) { DerivedClass derivedObject = new DerivedClass("base class string", "derived class string"); }