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...

Which of the following is NOT an I/O task performed by the operating system?

A. handles output to the monitor B. executes program instructions C. manages network communication D. controls information storage and retrieval

Computer Science & Information Technology

In what units is passive gain measured?

A. effective isotropically radiated power B. intentionally radiated power C. decibels dipole D. decibels isotropic

Computer Science & Information Technology