摘要: C#学习笔记(二十)类的继承和类成员访问控制 Object是所有类的基类 class Program { static void Main(string[] args) { Type t = typeof(Car); Type tb = t.BaseType; Console.WriteLine(t 阅读全文
posted @ 2022-06-20 20:29 专心Coding的程侠 阅读(82) 评论(0) 推荐(0) 编辑
摘要: C# 刘铁锰 C#语言入门详解 学习笔记02(P3) (类、名称空间、类库、依赖关系 类是引用类型 析构函数 和构造函数一样放在类里面。 class Program { static void Main(string[] args) { Studnt stu =new Student(2019,"O 阅读全文
posted @ 2022-06-20 16:28 专心Coding的程侠 阅读(118) 评论(0) 推荐(0) 编辑