Abstract Vs Interface in Third Party class
This question already has an answer here:
Let's say the third party class, already inherits from a class(could be a class or abstract class). Now if you want your third party class to make use of this new abstract class, new set of classes have to be written. c# doesn't support inheritance of multiple classes. However in case of an interface, your existing third party class may just implement it, ie implement its methods.
链接地址: http://www.djcxy.com/p/54262.html上一篇: 继承抽象类与实现接口
下一篇: 摘要Vs接口在第三方类