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


            }

上一篇:总结JVM运行宏观流程


下一篇:函数的变量中传递的是对象