Impact of Program Design - AP Computer Science A

Card 1 of 30

0
Didn't Know
Knew It
0
1 of 3029 left
Question

What is the purpose of encapsulation in object-oriented programming?

Tap to reveal answer

Answer

To hide the internal state and require all interaction through methods. Data hiding ensures controlled access and maintains object integrity.

← Didn't Know|Knew It →