c#编程语言知识点
文章平均质量分 74
淡写你的回忆
少说话多做事有点宅喜好游戏
展开
-
c#接口的用法
namespace 抽象类借口 { class Program { class Chinese:Walkable { public void Walk() { Console.WriteLine("pia pia"); } }原创 2013-07-10 11:20:20 · 635 阅读 · 0 评论 -
继承知识点 实例
namespace 继承 { class Person//所有类都是object的子类。这里的person也是object的子类 { public Person(int age, string name)//构造函数 { this.Age = age; this.Name = name;翻译 2013-06-25 16:52:59 · 677 阅读 · 0 评论 -
构造函数 实例解析
namespace ConsoleApplication1 { enum GanderEnum { Femal,Male} class Person { private GanderEnum gander; //定义字段 public int Age // 类里面的属性定义 一般属性开头大写,字段小写,方便区分 {原创 2013-06-25 16:02:06 · 631 阅读 · 0 评论 -
多态的演示 代码 套用上一章的
namespace 多态 { class Person//所有类都是object的子类。这里的person也是object的子类 { public Person(int age, string name)//构造函数 { this.Age = age; this.Name = name;翻译 2013-06-26 10:07:19 · 688 阅读 · 0 评论 -
多态的好处 例题介绍
namespace 多态的好处 { class Person//所有类都是object的子类。这里的person也是object的子类 { public Person(int age, string name)//构造函数 { this.Age = age; this.Name = name;翻译 2013-06-27 10:20:27 · 619 阅读 · 0 评论 -
对象的引用
namespace 对象的引用 { class Person//所有类都是object的子类。这里的person也是object的子类 { public Person(int age, string name)//构造函数 { this.Age = age; this.Name = name;翻译 2013-06-28 09:36:59 · 806 阅读 · 0 评论