Exemplo n.º 1
0
 public static void Show()
 {
     Console.WriteLine("**************DIPShow***************");
     Student student = new Student()
     {
         ID   = 19,
         Name = "班长"
     };
     {
         iPhone phone = new iPhone();
         student.PlayiPhone(phone);
     }
     {
         Mi phone = new Mi();
         student.PlayMi(phone);
     }
     {
         Mi phone = new Mi();
         student.PlayPhone(phone);
     }
 }
Exemplo n.º 2
0
 public void PlayMi(Mi MiPhone)
 {
     Console.WriteLine($"这里是{this.Name}");
 }