接口- C# 编程指南| Microsoft Docs

文章推薦指數: 80 %
投票人數:10人

接口包含非抽象类或结构必须实现的一组相关功能的定义。

An interface contains definitions for a group of related functionalities that a non-abstract class or a struct must implement. 接口可以定义 static 方法,此类方法必须具有实现。

An interface may define static methods, which must have an implementation. 从 C# 8



請為這篇文章評分?