Interface(C#8.0或以上版本): 默认接口实现

1.注意点,只能在C#8.0或以上;

2.注意只能用引用类型调用

测试例子如下:

 

posted @ 2022-09-21 11:56  katesharing  阅读(124)  评论(0)    收藏  举报