Computer Applications
What will be the visibility of a private class ?
Encapsulation & Inheritance in Java
1 Like
Answer
A top-level class can't be declared as private. Only inner or nested classes can be private.
Answered By
2 Likes
What will be the visibility of a private class ?
1 Like
A top-level class can't be declared as private. Only inner or nested classes can be private.
Answered By
2 Likes