What feature of Java allows you to enforce information hiding when you define a class such as an ADT?

What will be an ideal response?


You can declare the data members as private instead of public.

Computer Science & Information Technology

You might also like to view...

For each function, f(), g() and h() state how what exceptions should be thrown.

Given these three functions with different exception specifications a) void f()throw(); b) void g()throw(int, string); c) void h();

Computer Science & Information Technology

It is illegal to remove DRM from a protected file

Indicate whether the statement is true or false

Computer Science & Information Technology

An array is an indexed collection of key-value pairs.

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

Computer Science & Information Technology

Is it a good idea to save action queries permanently in a database?  Why or why not?

What will be an ideal response?

Computer Science & Information Technology