Problem Statement
Explain how access modifiers (private/protected/public) support the OOP goals of encapsulation and modularity.
Explanation
They define stable boundaries—hiding internals (private), exposing minimal extension points (protected), and clear public APIs—reducing coupling and easing evolution.
