摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 字段与属性 { class Program { 阅读全文
posted @ 2020-06-07 22:17 进一步海阔天空 阅读(138) 评论(0) 推荐(0)
摘要: 代码 : using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 封装 { class Program 阅读全文
posted @ 2020-06-07 22:14 进一步海阔天空 阅读(97) 评论(0) 推荐(0)
摘要: 泛型的模板: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 泛型List { /// <sum 阅读全文
posted @ 2020-06-07 22:12 进一步海阔天空 阅读(206) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 对象初始化器 { /// <summary> / 阅读全文
posted @ 2020-06-07 19:14 进一步海阔天空 阅读(114) 评论(0) 推荐(0)
摘要: 构造方法:1,用于初始化,一个类中最少有一个2,用new关键字调用3,不能有返回值4,方法名和类名一样 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System 阅读全文
posted @ 2020-06-07 18:49 进一步海阔天空 阅读(158) 评论(0) 推荐(0)
摘要: 方法重载: 需求:解决多个同类型方法的命名的问题 好处:方便使用编译器判断的依据:1,方法同名 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Thr 阅读全文
posted @ 2020-06-07 18:24 进一步海阔天空 阅读(150) 评论(0) 推荐(0)
摘要: 方法的定于与使用:方法:实例方法,静态方法(构造方法,抽象方法,虚方法,扩展法)定义规范:访问修饰符,返回值类型 方法名(参数1,参数2,参数3。。。){在这里我们要做的事件return返回值(没有返回值就不用写return语句,有返回值就一定要写return语句)}方法命名:Pascal命名法,首 阅读全文
posted @ 2020-06-07 15:36 进一步海阔天空 阅读(216) 评论(0) 推荐(0)