下边是接口的列子nterface 收费
{
    void ShowMoney();//收费标准
}
class 公交车:收费
{
    void ShowMoney()
   {
        Console.write("公交车收费是1元");//必须要实现接口中的方法
    }
}
class 出租车:收费
{
    void ShowMoney()
    {
     console.write("每公里1元");//必须要实现接口中的方法
    }
}
-----------------------------------------------------------
然后下边是没有接口实现的class 公交车
{
    void ShowMoney()
   {
        Console.write("公交车收费是1元");
    }
}
class 出租车
{
    void ShowMoney()
    {
     console.write("每公里1元");
    }
}
上边两种写法 我感觉没有任何差别,唯一的区别就是用接口 规范一些,而且不实现的话编译时候给个提示 ,
但是本质上我感觉没什么作用啊 求讲解 接口还有什么其他作用吗