Java Package level access

前端 未结 2 1675

I know that class members with default access control can be accessible at package level but i\'m confused about what does package level access actually mean. If default mem

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-20 01:03

    You forget to write

    package pkg1; 
    

    for Test2 class.

    It should work now

提交回复
热议问题