Difference between static nested class and regular class

前端 未结 5 1139
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-11 07:52

I know this is a bit of a duplicate question but I want to ask it in a very specific way in order to clarify a very important point. The primary question being: Is there any

5条回答
  •  难免孤独
    2020-12-11 08:19

    ContainedStaticClass has package private (i.e. default) visibility and OutsideClass has public visibility.

    You could have chosen to make ContainedStaticClass protected or private which were not options for OutsideClass.

提交回复
热议问题