Home » JAVA Programming » Modifier Types » Question
  1. Which of the following statements are incorrect?
    1. private members of class can only be accessed by other members of the class
    2. public members of class can be accessed by any code in the program
    3. protected members of a class can be inherited by a subclass, and become private members of the subclass
    4. private members of class can be inherited by a subclass, and become protected members in subclass
    5. None of these
Correct Option: D

private members of a class can not be inherited by a subclass.



Your comments will be displayed only after manual approval.