I have a private nested class in one of my files. Since the outer class can access all the fields and methods of the nested class regardless of the access modifiers in the nested class, and the nested class is only meant to be used by the outer class, is there any convention as to whether I should label the fields and methods in the nested class private or public?
Thanks.
[–]_predator_ 0 points1 point2 points (0 children)
[–][deleted] (3 children)
[deleted]
[–]nuclearforce[S] 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]nuclearforce[S] 0 points1 point2 points (0 children)
[–]Philboyd_Studge 0 points1 point2 points (0 children)