Java Associate — Easy
Key points
- Private access modifier restricts access to the class itself.
- It enhances encapsulation by hiding implementation details.
- Other classes cannot directly access private members.
Ready to go further?
Related questions
Java Associate — Easy
Key points
Ready to go further?
Related questions