C#上机操作题,求答案,谢谢
展开全部
一:
public class Test
{
private string name;
private string tel;
public string Name
{
get{return name;}
set{name=value;}
}
public string Tel
{
get{return tel;}
set{tel=value;}
}
public string ShowME(string name,string tel)
{
return("姓名:"+name+"电话:"+tel);
}
}
public class Test
{
private string name;
private string tel;
public string Name
{
get{return name;}
set{name=value;}
}
public string Tel
{
get{return tel;}
set{tel=value;}
}
public string ShowME(string name,string tel)
{
return("姓名:"+name+"电话:"+tel);
}
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询