摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace 类_继承 7 { 8 // 基类 : 动物 9 public abstract cl 阅读全文
posted @ 2016-04-05 15:50 C/C++/Python/Java 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 /*--------------------------------------------------------------------------------------------... 阅读全文
posted @ 2016-04-05 15:26 C/C++/Python/Java 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 /*--------------------------------------------------------------------------------------------... 阅读全文
posted @ 2016-04-05 11:52 C/C++/Python/Java 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 /* 7 * 私有构造函数: 8 * 1. 只能在类内部调用 9 * 2. 通过类的方法返回类的实例 1 阅读全文
posted @ 2016-04-05 10:41 C/C++/Python/Java 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 /* 7 * 类静态构造函数: 8 * 1. 主要用于初始化类中的静态成员 9 * 2. 不能使用任何访 阅读全文
posted @ 2016-04-05 09:39 C/C++/Python/Java 阅读(216) 评论(0) 推荐(0) 编辑