Intermediate Object-Oriented Programming Concepts
Q77 / 100

What is "encapsulation" most directly in tension with, if overused without any public interface?

Correct! Well done.

Incorrect.

The correct answer is A) Usability — an object with no way to interact with its data becomes useless to other code

A

Correct Answer

Usability — an object with no way to interact with its data becomes useless to other code

Explanation

If everything is private with no accessors or methods, other code cannot interact with the object meaningfully, so a balance between hiding and exposing is needed.

Progress
77/100