Beginner Object-Oriented Programming Concepts
Q30 / 100

What is the main benefit of encapsulation?

Correct! Well done.

Incorrect.

The correct answer is B) It protects an object's internal state from invalid external changes and reduces coupling

B

Correct Answer

It protects an object's internal state from invalid external changes and reduces coupling

Explanation

By hiding internal details, encapsulation ensures objects can only be modified through valid, controlled operations.

Progress
30/100