摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CustomizedList { class M 阅读全文
posted @ 2020-05-18 22:45 艾孜尔江 阅读(1822) 评论(0) 推荐(0) 编辑
摘要: Test(5,6,7,8,9,10); void Test(int sd, params int[] arr)//不定长参数前要加params { for(int i = 0 ; i < arr.Length; i++) { Console.WriteLine(i+" "+arr[i]); } } 阅读全文
posted @ 2020-05-18 22:25 艾孜尔江 阅读(1821) 评论(0) 推荐(0) 编辑
摘要: 1. protected和private在没有继承关系的类A和类B之间其作用都可以视为式一样的——表示私有——每个类中的protected字段/属性都不能被访问到; 2. 当类与类之间存在继承关系时候,比如当class A extends B 阅读全文
posted @ 2020-05-18 20:52 艾孜尔江 阅读(1570) 评论(0) 推荐(0) 编辑