摘要: 自定义ArrayList,知多点: 1.定义字段和属性区别。 2.const、static、readonly用法。 3.索引器的定义。 4.虚方法应用。 class MyArrayList { //容量 private const int _defaultCapacity = 4; //存放数组元素 阅读全文
posted @ 2020-02-28 10:30 zhuyapeng 阅读(236) 评论(0) 推荐(0) 编辑