0 votes
by (524 points)
Explain the needs of Encapsulation.

1 Answer

0 votes
by (1.1k points)

Encapsulation helps in isolating implementation details from the behavior exposed to clients of a class, and gives you more control over coupling in your code.

Welcome to CodersEditor Q&A, where you can ask questions and receive answers from other members of the community.