About interface

xiaoxiao2021-03-06  76

Using an interface, multiple behavioral features can be implemented in a single class. In C #, you can derive from a single class, and, in addition to the features that have those obtained by inheritance, you can implement any more interfaces in accordance with the needs of the class.

Suggestions on the interface:

Always convert objects to that interface where you want to use.

转载请注明原文地址:https://www.9cbs.com/read-89092.html

New Post(0)