2021-10-23
作者:互联网
一
class Wife
{
private string name;
public void SetName(string name) {
this. name = name; }
public string GetName(){
return name;
}
static void Main()
{
Wife wife01;
wife01 = new Wife();
wife01.SetName("王美丽");
Console.WriteLine(wife01.GetName());
Console.ReadLine();
}
标签:10,string,SetName,23,GetName,Wife,2021,wife01,name 来源: https://blog.csdn.net/m0_56747549/article/details/120922531