关闭

20. Interfaces

533人阅读 评论(0) 收藏 举报
An interface defines a contract. A class or struct that implements an
interface must adhere to its contract. An
interface may inherit from multiple base interfaces, and a class or struct
may implement multiple interfaces.
Interfaces can contain methods, properties, events, and indexers. The
interface itself does not provide
implementations for the members that it defines. The interface merely
specifies the members that must be
supplied by classes or interfaces that implement the interface.
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:566185次
    • 积分:11486
    • 等级:
    • 排名:第1344名
    • 原创:565篇
    • 转载:0篇
    • 译文:0篇
    • 评论:50条
    文章分类