摘要: 直接访问数组每一个数 1 using System; 2 namespace ArrayApplication 3 { 4 class MyArray 5 { 6 static void Main(string[] args) 7 { 8 int[] n = new int[10]; 9 int i 阅读全文
posted @ 2021-09-17 00:18 welasss 阅读(39) 评论(0) 推荐(0)
摘要: C#封装根据具体的需求,设置具体的访问权限,并通过访问修饰符来实现; 在C#中使用的访问修饰符有以下几类 1:public public允许一个类将其成员变量和成员函数暴露给其他的函数和对象。任何公有成员都可以被外部的类访问。 2:internal internal允许一个类将其成员变量和成员函数暴 阅读全文
posted @ 2021-09-06 18:21 welasss 阅读(242) 评论(0) 推荐(0)