Which of the following are not inherited by subclasses?
A) public fields and public methods
B) private fields and private methods
C) protected fields and protected methods
D) All of these are correct.
Correct Answer:
Verified
Q7: A class can implement more than one
Q8: If a class has an abstract method,
Q9: We can instantiate an object from an
Q10: Inheritance is useful for which of the
Q11: Some OOP developers call a subclass the
Q13: Why does Java provide a protected access
Q14: Why would you want to override a
Q15: The extends keyword specifies that the subclass
Q16: If the call to the direct superclass
Q17: When a class extends another class, the
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents