What is different between an abstract and an Inter

2019-06-26 16:37发布

What is different between an abstract and an Interface class in C#?

8条回答
一纸荒年 Trace。
2楼-- · 2019-06-26 17:31

A class can implement multiple interfaces but can only inherit from one abstract class.

Also, abstract classes may have some functions defined but interfaces will not have any function definition and the deriving class must define all of them.

查看更多
仙女界的扛把子
3楼-- · 2019-06-26 17:35

Google "abstract class vs interface" and you'll get lots of explanatory articles...

查看更多
登录 后发表回答