面象对象(C#)
pme类的一个属性不会写~~或者说跟本就不能~~还请给个回复
过程是这样~~下面是代码
class Pme
{
public Pme()
{ }
public static Pme Active { get { } set { } }
public virtual string MeFon()
{
return "string ";
}
public virtual string MeType
{
get
{
return "字符 ";
}
}
}
class Pyou
{
public Pyou()
{
Pme.Active = new Pme_CN();
}
}
class Pme_CN : Pme
{
public Pme_CN() { }
public override string MeType
{
get
{
return "数字 ";
}
}
public override string MeFon()
{
return "int ";
}
}
我的form1窗体里
private void button3_Click(object sender, EventArgs e)
&n