Which is the advantage of encapsulation?

a. Only public methods are needed.
b. Making the class final causes no consequential changes to other code.
c. It changes the implementation without changing a class's contract and causes no consequential changes to other code.
d. It changes a class's contract without changing the implementation and causes no consequential changes to other code.


c. It changes the implementation without changing a class's contract and causes no consequential changes to other code.

Computer Science & Information Technology

You might also like to view...

A sequence of six numbers and/or letters used to define a specific color in CSS rules is called a(n) hex value.

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

Computer Science & Information Technology

To insert an item in an AVL tree, first we search the tree and find the place where the new item is to be inserted.

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

Computer Science & Information Technology

With the foreach statement, what is used to automatically hold each array value through each iteration of the loop?

A. iteration variable B. index holder C. subscript holder D. iteration holder

Computer Science & Information Technology

? In the accompanying figure, Box B points to _____.

A. ?option buttons                                                                                                                                                                 B. selection lists                                                                                      C. input boxes D. spin boxes

Computer Science & Information Technology