“包装”和“包装”之间的区别是什么?和“模块” [英] What's the difference between "package" and "module"

查看:254
本文介绍了“包装”和“包装”之间的区别是什么?和“模块”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用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.

这篇关于“包装”和“包装”之间的区别是什么?和“模块”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆