public class Contact
{
protected string Name;
protected string HomePhone;
protected string busiPhone;
protected string mobilePhone;
public Contact(string name, string home, string busi, string mobile)
{
Name = name;
HomePhone = home;
busiPhone = busi;
mobilePhone = mobile;
}
public override string ToString()
{
string temp = string.Format("姓名:{0},家庭电话:{1},办公电话:{2},移动电话:{3}\n",
Name, HomePhone, busiPhone, mobilePhone);
return temp;
}
public override string ToString();到底怎么用啊