摘要: 感觉每点都是重点,我已无法抉择了............................................ 阅读全文
posted @ 2017-09-17 22:04 ~波妞~ 阅读(217) 评论(1) 推荐(0) 编辑
摘要: 1.各自优点总结 2.两种类型的相互转换 阅读全文
posted @ 2017-09-17 15:11 ~波妞~ 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 实现多态 1.Animal.cs(类文件) using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace Consol 阅读全文
posted @ 2017-09-17 11:03 ~波妞~ 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 定义动物类Animal,在类中定义字段·属性和虚拟方法;由基类Anima创建派生类Dog,Cat,在派生类中实现方法重载;在程序中实例化类的对象并调用类的方法。 1.Animal.cs文件: using System;using System.Collections.Generic;using Sy 阅读全文
posted @ 2017-09-17 10:32 ~波妞~ 阅读(159) 评论(0) 推荐(0) 编辑