Which of the following statements is true?

a. Methods and instance variables can both be either public or private.
b. Information hiding is achieved by restricting access to class members via keyword public.
c. The private members of a class are directly accessible to the clients of a class.
d. None of the above is true.


a. Methods and instance variables can both be either public or private.

Computer Science & Information Technology

You might also like to view...

When we remove an element from a priority queue, it is called a(n) ___________ operation.

A. removal B. enqueue C. dequeue D. subtractive

Computer Science & Information Technology

?To reposition a graphic on a slide, _____.

A. ?align it in the handout mode B. select the text-wrapping option before moving C. ?press and hold the Ctrl key as you move it D. ?drag it to its new position

Computer Science & Information Technology

What wireless networking radio frequency yields faster speeds but offers shorter range?

A. 2.4 GHz B. 5 GHz C. 7 GHz D. 11 GHz

Computer Science & Information Technology

Case OL 1-1Maria is a new employee. She was just assigned a computer and e-mail address this week, so she is still becoming familiar with Outlook. Maria wants to personalize her copy of Microsoft Office with her username and initials. Where can she do that?

A. Advanced section of the Outlook Options dialog box B. General section of the Outlook Options dialog box C. People Pane D. Navigation Pane

Computer Science & Information Technology