using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _接口练习
{
class Program
{
static void Main(string[] args)
{
//麻雀会飞 鹦鹉会飞 企鹅不会飞 飞机会飞
//多态实现
ifayable fly= new maque();//new yingwu();
fly.fly();
Console.ReadKey();
}
}
public abstract class animal
{
public double wings
{
get;
set;
}
public void chls()
{
Console.WriteLine("我会吃喝");
}
//public abstract void fly();抽象类
//public void fly
//{
// Console.WriteLine("会飞
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _接口练习
{
class Program
{
static void Main(string[] args)
{
//麻雀会飞 鹦鹉会飞 企鹅不会飞 飞机会飞
//多态实现
ifayable fly= new maque();//new yingwu();
fly.fly();
Console.ReadKey();
}
}
public abstract class animal
{
public double wings
{
get;
set;
}
public void chls()
{
Console.WriteLine("我会吃喝");
}
//public abstract void fly();抽象类
//public void fly
//{
// Console.WriteLine("会飞