为什么不止一个班级不允许公开 [英] why more than one class not allowing in public
本文介绍了为什么不止一个班级不允许公开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在java中为什么我们无法在公共中声明多个类?
In java why we cannot able to declare more than one class in public ?
推荐答案
这只是一种强制执行良好设计/结构的尝试。它没有潜在的技术原因。
/ Fredrik
It is just an attempt to enforce good design/structure. There is no underlying technical reason for it.
/Fredrik
这篇关于为什么不止一个班级不允许公开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文