20. Interfaces

来源:互联网 发布:洪仔排课软件破解版 编辑:程序博客网 时间:2024/05/24 22:42
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.
原创粉丝点击