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