Java中的接口...... [英] Interfaces in Java...
本文介绍了Java中的接口......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道抽象类和接口类之间的区别吗?
使用接口有什么好处?
解决方案
谷歌是你的朋友:好好经常拜访他。他可以比在这里发布问题更快地回答问题...
快速搜索给出了200万次点击: Google [ ^ ]
将来,请尝试自己做至少基础研究,不要浪费你的时间或我们的。
请参阅我过去的答案的小集合:对接口的怀疑 [ ^ ]。
对不起,这不是关于Java,而是关于.NET,但是,几乎所有东西都适用于Java。 OOP方法非常相似。
-SA
i wanted to know the difference between a abstract class and a interface class?
what is the advantage of using interface?解决方案Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...
A very quick search gave two million hits: Google[^]
In future, please try to do at least basic research yourself, and not waste your time or ours.
Please see my small collection of past answers: Doubts on Interfaces[^].
Sorry, this is not about Java but is on .NET, nevertheless, nearly everything is applicable to Java as well. OOP approaches are very similar.
—SA
这篇关于Java中的接口......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文