A protected member inherited in public mode becomes ______ , whereas inherited in private mode becomes ______ in the derived class.
举一反三
- 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
- 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
- 不是修饰符的是() A: public B: private C: protected D: class
- 下列哪个类的声明是正确的?( ) A: class A B: class public A C: protected class A D: private class A
- 定义类的关键字是( )。 A: class B: private C: protected D: public