文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>自己写的接口

自己写的接口

时间:2011-05-06  来源:兵临天下

class InterfaceTest1
    {
        static void Main(string[] args)
        {
            Student stu = new Student();
            stu.sum();
            stu.sum1();
            Console.ReadKey();
        }
    }
    //接口1

    interface Ic1
    {
       
        void sum();
       
    }
    //接口2
    interface Ic2
    {
        void sum1();

    }
    class ss
    {

    }
    class Student:ss,Ic1,Ic2
    {
        //接口实现
        public void sum()
        {
            Console.WriteLine("接口1");
        }
        public void sum1()
        {
            Console.WriteLine("接口2");
        }
    }
相关阅读 更多 +
排行榜 更多 +
宝石帝国免广告

宝石帝国免广告

冒险解谜 下载
熊出没森林勇式单机版

熊出没森林勇式单机版

休闲益智 下载
像素勇士向前冲游戏

像素勇士向前冲游戏

休闲益智 下载