"package"和"package"之间有什么区别和“模块"? [英] What's the difference between "package" and "module"?
问题描述
我使用Java,而我们只有软件包.我知道还有其他编程语言也包含模块.
I use Java where we only have packages. I know there are other programming languages that also include modules.
有什么区别?
推荐答案
很难比较void中的语义. (您还说什么其他语言?)模块"可能类似于Java类,Java包或完全其他的模块,具体取决于该其他语言.通常,由于模块"通常来自过程语言,所以我倾向于讲Java类,但是我认为这句话非常模糊,您可以令人信服地争论一下软件包.
It's hard to compare semantics in the void. (What other languages do you mean?) A "module" might be analogous to a Java class, or a Java package, or something else entirely, depending on that other language. Typically since "modules" tend to be from procedural languages, I'd lean toward saying Java class, but I think the line is very fuzzy at that point and you could argue package quite convincingly.
这篇关于"package"和"package"之间有什么区别和“模块"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!