Question

What is a key benefit of encapsulation?

A It allows direct modification of internal object state from anywhere.
B It exposes all implementation details to the outside world.
C It improves security by preventing unauthorized access to data and simplifies maintenance.
D It reduces the need for classes and objects.
E It enables runtime polymorphism.
Practice Next

Hey! Ask a query