Logo
Section 1 / 11

可访问性

本课程讨论了 Java 中的各种访问权限级别。

导入

可访问性

本课程讨论了 Java 中的各种访问权限级别。

1.

How can access to classes, class variables and methods be controlled?

0/500
2.

Can you list the access modifiers in Java?

0/500
3.

What are the top-level access modifiers?

0/500
4.

Explain the public modifier

0/500
5.

How can we mark an entity package private in Java?

0/500
6.

Explain the protected access modifier

0/500
7.

Explain the private modifier

0/500
8.

Is it a good idea to make classes and fields public?

0/500

下表列出了 Java 中不同访问修饰符对不同实体可见性的影响。

使用修饰符标记在类内可见在包内可见在子类中可见在世界范围内可见
public是是是是
protected是是是否
包私有是是否否
private是否否否

方法

对象类