一
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();
}