What is the main purpose of encapsulation in Java? #oops
Anonymous Quiz
17%
To make code more readable
67%
To hide implementation details and expose a public interface
7%
To ensure code executes without errors
8%
To allow multiple inheritance
❤8👍2