public static void Main()
   {
      System.Console.WriteLine("Hello Interfaces");
      InterfaceDemo8 refDemo = new InterfaceDemo8();
      abc refabc = refDemo;
      refabc.xyz();
      def refdef = refDemo;
      refdef.pqr();
//      refdef.xyz();  /* try uncommenting line */
   }
示例#2
0
    public static void Main()
    {
        System.Console.WriteLine("Hello Interfaces");
        InterfaceDemo8 refDemo = new InterfaceDemo8();
        abc            refabc  = refDemo;

        refabc.xyz();
        def refdef = refDemo;

        refdef.pqr();
//      refdef.xyz();  /* try uncommenting line */
    }