Which of the following statements is true?

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


a) Methods and instance variables can be public, protected or private.

Computer Science & Information Technology

You might also like to view...

What does the first pass of selection sort do?

a. Splits the array into two approximately equal pieces. b. Orders the first two elements of the array. c. Partitions the array into two unequal pieces depending on whether each element in the array is greater or less that some pivot element. d. Locates the smallest element in the array and swaps it into the zeroth position.

Computer Science & Information Technology

The frameset DTD is best used for documents that need to strictly conform to the latest XHTML standards.

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

Computer Science & Information Technology

_______________ returns the selected item on a ComboBox cbo.

a. cbo.getSelectedIndex() b. cbo.getSelectedItem() c. cbo.getSelectedIndices() d. cbo.getSelectedItems() e. cbo.getValue()

Computer Science & Information Technology

Can a role be shared between two or more participants? Why or why not?

What will be an ideal response?

Computer Science & Information Technology