-
Can we have a private class in Java?
私人
部类 成员
Questioner:Benjamin Stewart 2023-05-05 14:09:54
The most authoritative answer in 2024
-

-
Julian Parker——Works at the International Fund for Agricultural Development, Lives in Rome, Italy.
Inner
Classes (Non-static Nested
Classes) Inner
classes are a security mechanism in
Java.
We know a
class cannot be associated with the access modifier
private, but if
we have the
class as a member of other
class, then the inner
class can be made
private. And this is also used to access the
private members of a
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.