In order for derived classed to have access to encapsulated data members and methods of superclasses, the data members and methods should be declared using the ____________________ modifier.

a) private
b) public
c) protected
d) final
e) static


c) protected

Computer Science & Information Technology

You might also like to view...

Adding a ButtonGroup object to a container ________.

a. is necessary for the functionality of the ButtonGroup to work properly. b. causes all the JRadioButtons in the group to have their event handlers registered. c. results in a compilation error. d. None of the above.

Computer Science & Information Technology

The notation >

A) will be rejected by the Compiler as an error B) declares a generic type that implements the Comparable interface C) is used when there is a recursive definition of the generic type E D) None of the above

Computer Science & Information Technology

Megan needs to distribute a document over the Internet. Before she does so, what should she do to ensure that her private information is removed and that the file is accessible to as many people as possible?

What will be an ideal response?

Computer Science & Information Technology

The sensors inside many mobile devices allow various apps to track your activity, such as counting the number of steps you take per day.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology