在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
Test
{ public int int_x; public string str_x; public byte byte_x; public Test() { this.int_x=10; this.str_x="I love you more than I can say !"; this.byte_x=5; } public Test(string str):this() { this.str_x=str; } static void Main() { Test te=new Test("You are my sunshine.."); Console.WriteLine("te.int_x={0}\n",te.int_x); Console.WriteLine("te.str_x={0}\n",te.str_x); Console.WriteLine("te.byte_x={0}\n",te.byte_x); } |
请发表评论