6.7 类(Class)的访问控制 Class 只有包内访问(package access)和公共访问控制(public access)。 6.8 包外类 包外类就相当于Class(类)的private 访问控制。
基于12个网页-相关网页
将每个测试实例与它要测试的类放在同一个包内,以获得对包成员和保护成员的访问权。
Put each test case in the same package as the class it's testing to gain access to package and protected members.
现在我实现了对所有与UI相关的组件的编程序访问(假设所有需要进行访问的类都在同一个包内)。
I've now enabled programmatic access to all of my UI-related components (assuming that all the classes that require access are in the same package).
应用推荐