摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 接口{//Animal //Aquatic 水生动物 //Land 陆地动物 //Fly 会飞的 public interface IRunable { void Run(); } public interface ISwimable { void Siwm(); } public in... 阅读全文
posted @ 2014-04-08 10:05 keiling 阅读(706) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 接口{ public interface IFlyable { void liftoff(); } public class Bird:IFlyable { public virtual void liftoff() { Console.WriteLine("Bird has lift off!!"); ... 阅读全文
posted @ 2014-04-08 10:04 keiling 阅读(290) 评论(0) 推荐(1) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 接口{ public interface IWindlows { void Close()... 阅读全文
posted @ 2014-04-08 10:01 keiling 阅读(235) 评论(0) 推荐(1) 编辑