[求助]关于继承类的问题
我做了一个关于继承类的代码,怎么老是出现声明的类受保护的错误提示,请高手看下下啊[此贴子已经被作者于2006-5-8 16:02:58编辑过]
private void button1_Click(object sender, System.EventArgs e)
{
x=new dcomplexnumber (Int32.Parse (textBox1.Text ),Int32.Parse (textBox2.Text ));
textBox1.Clear ();
textBox2.Clear ();
label3.Text ="第一个复数为"+x.ttostring ();
}
private void button2_Click(object sender, System.EventArgs e)
{
y=new dcomplexnumber (Int32.Parse (textBox1.Text ),Int32.Parse (textBox2.Text ));
textBox1.Clear ();
textBox2.Clear ();
label3.Text ="第二个复数为"+y.ttostring ();
}