Solved

Why Does Java Provide a Protected Access Modifier

Question 13

Multiple Choice

Why does Java provide a protected access modifier?


A) To hide methods from the client classes
B) To hide fields from client classes
C) So that fields and methods can be inherited by subclasses
D) All of these are correct.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents