A class design requires that a particular member variable must be accessible by any subclasses of this class, but otherwise not by classes which are not members of the same package. What should be done to achieve this?

a. The variable should be marked public.
b. The variable should be marked private.
c. The variable should be marked protected.
d. The variable should have no special access modifier.
e. The variable should be marked private and an accessor method provided.


c. The variable should be marked protected.

Computer Science & Information Technology

You might also like to view...

One of the unique features of the Mac desktop is the _____.

A. Dock B. window C. Start key D. Home key

Computer Science & Information Technology

If the rulers do not display on your Word 2016 screen, click the ________ tab, and select the Ruler check box in the Show group

A) Insert B) Layout C) Design D) View

Computer Science & Information Technology

The Nexus S 4G, iPhone 4, and HTC Trophy all have cameras of how many megapixels?

A. 3 MP B. 5 MP C. 7 MP D. 10 MP

Computer Science & Information Technology

A ________ is a group of related files, such as code files, resource files and images that make up an app.

a. folder b. directory c. solution d. project

Computer Science & Information Technology