What's the difference between “package” and “module”?

前端 未结 5 859
你的背包
你的背包 2020-12-04 23:42

I use Java where we only have packages. I know there are other programming languages that also include modules.

What\'s the difference?

5条回答
  •  误落风尘
    2020-12-05 00:36

    A package is more akin to a C++ namespace than a module. A module is more akin to an enclosing class than to a package.

提交回复
热议问题