Which of the following is true about protected access?

a. Protected members may be accessed by methods in the same package or in a subclass, even when the subclass is in a different package.
b. Protected members may be accessed by methods in the same package or in a subclass, but only if the subclass is in the same package.
c. Protected members cannot be accessed by methods in any other classes.
d. Protected members are actually named constants.


a. Protected members may be accessed by methods in the same package or in a subclass, even when the subclass is in a different package.

Computer Science & Information Technology

You might also like to view...

In Excel, if there are numbers both above and below a cell and you attempt to use the AutoSum function, the function will add up the numbers to the left as its default

Indicate whether the statement is true or false

Computer Science & Information Technology

The type of memory that a computer uses to run several programs at the same time is called ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology