Solved

When Declared as Protected, Data in an Object Can Be

Question 33

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