摘要: Person Program 阅读全文
posted @ 2016-04-06 13:58 C/C++/Python/Java 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 3 namespace 类_使用新成员隐藏基类成员 4 { 5 // 基类 : Animal 6 public class Animal 7 { 8 // 基类的普通方法Eat(), 并未用Virtual修饰 9 public void Eat() 10 { 11 阅读全文
posted @ 2016-04-06 09:53 C/C++/Python/Java 阅读(498) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 3 namespace 类_阻止派生类重写虚成员 4 { 5 // 声明一个抽象类Animal(用abstract关键字声明抽象类) 6 public abstract class Animal 7 { 8 // 基类的抽象方法Voice(); 功能在派生类实现 阅读全文
posted @ 2016-04-06 09:41 C/C++/Python/Java 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 using System.Text; 8 using System.Thread... 阅读全文
posted @ 2016-04-04 21:12 C/C++/Python/Java 阅读(379) 评论(0) 推荐(0) 编辑
摘要: Employee From1 阅读全文
posted @ 2016-04-04 11:25 C/C++/Python/Java 阅读(360) 评论(0) 推荐(0) 编辑