You want a class to have access to members of another class in the same package. Which is the most restrictive access that accomplishes this objective?()
A: public
B: private
C: protected
D: transient
E: default access
A: public
B: private
C: protected
D: transient
E: default access
举一反三
- You want a class to have access to members of another class in the same package. Which is the most restrictive access that accomplishes this objective?() A: public B: private C: protected D: transient E: default acce
- You want to limit access to a method of a public class to members of the same class. Which access accomplishes this objective?() A: public B: private C: protected D: transient E: default access
- 对象函数的访问属性Access不包含() A: Public B: Protected C: Local D: Private
- Which one of the following statements is wrong about inheritance? ( ) A: Inheritance is one of the features of OOP B: Protected members of a class can be inherited C: The inheriting class is called a subclass D: Private members of a class can be inherited and accessed
- Which of the following classes cannot be extended?(). A: class A { } B: class A { private A();} C: final class A { } D: class A { protected A();}