何时使用adstract类和接口的 [英] when to use adstract class and interface's
本文介绍了何时使用adstract类和接口的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们何时将使用抽象类以及何时使用接口类
when will we use abstract class and when to use interface class
推荐答案
如果您使用google,您将获得该问题的数百个匹配结果
例如
http://codeofdoom .com/wordpress/2009/02/12/learn-this-when-to-use-an-abstract-class-and-an-interface/ [
If you google, you''ll get hundreds of hits for that question
e.g.
http://codeofdoom.com/wordpress/2009/02/12/learn-this-when-to-use-an-abstract-class-and-an-interface/[^]
People have written large blog articles about this, if you have a search you''ll get a much more thorough answer then you''ll possibly get in here.
请在此处查看过去的答案:
何时使用抽象以及何时使用接口. ..? [如果没有相同的方法和抽象类,则抽象类和接口之间的区别var [ ^ ].
—SA
Please see past answers here:
When we use abstract and when we use interface...?[^],
Difference between abstract class and interface if they have same no of methods and var[^].
—SA
这篇关于何时使用adstract类和接口的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文