哪里错了?小弟谢谢各位打下哈

来源:百度知道 编辑:UC知道 时间:2024/06/27 08:29:19
class PhoneBook
{
private string name;
private string phone;
private struct address{
private string city;
public string street;
public uint no;
}
public string Phone
{
get
{
return phone;
}
set
{
phone = value;
}
}
public PhoneBook(string n){
name = n;
}
public Edit()
{;}
}

自己看吧。。
--------------------------
class PhoneBook
{
private string name;
private string phone;
private struct address{
private string city;
public string street;
public uint no;
}
public string Phone
{
get(Phone){
return phone;
}
set(Phone){
phone = value;
}
}
public PhoneBook(string n){
name = n;
}
public Edit()
{;}
}