10 2022 档案

学习收-C#接口的作用实例解析
摘要:一、接口的作用: 我们定义一个接口: public interface IBark { void Bark(); } 1、 再定义一个类,继承于IBark,并且必需实现其中的Bark()方法 public class Dog:IBark { public Dog() {} public void B 阅读全文
posted @ 2022-10-20 10:24 召唤师857 阅读(89) 评论(0) 推荐(0)