-
Can we create a private class in Java?
我们可以
嵌套 说明符
Questioner:Isabella Kim 2023-05-05 14:09:55
The most authoritative answer in 2024
-

-
Benjamin Brown——Works at the International Civil Aviation Organization, Lives in Montreal, Canada.
private classes are allowed but only as inner or nested
classes.If you have a
private inner or nested
class, then access is restricted to the scope of that outer
class. ...
We can not
declare outer
class as private. More precisely
we can not use
private access specifier with outer
class.
read more >>
About “我们可以、嵌套、说明符”,people ask:
QuesHub is a place where questions meet answers, it is more authentic than Quora, but you still need to discern the answers provided by the respondents.