Implicit and display implementation of c\interface and code demonstration of adaptive range

From , 4 Years ago, written in C#, viewed 51 times.
URL https://pastebin.vip/view/01259a0c
  1.  
  2.    interface IAnimal
  3.     {
  4.        void Dog();
  5.     }
  6.     class Animal:IAnimal
  7.     {
  8.       public void Dog()
  9.       {
  10.         Console.WriteLine("dog...");
  11.       }
  12.      }
  13.   定义了一个IAnimal接口,一般我们都会这么调用:
  14.     //通过类调用
  15.     Animal animal = new Animal();
  16.     animal.Dog();
  17.     //或者通过接口调用
  18.     IAnimal animal = new Animal();
  19.     animal.Dog();
  20.  
  21.  
  22. //csharp/6017

Reply to "Implicit and display implementation of c\interface and code demonstration of adaptive range"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website