Solved

When Declared as Protected, Data in an Object Can Be

Question 94

Multiple Choice

When declared as protected, data in an object can be accessed by ____.


A) Only by that class's methods and by all of its subclasses
B) Only by that class's methods, by all of its subclasses, and by methods in classes within the same package.
C) Only by that class's methods.
D) By any class.

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