Java - Encapsulation
You want to protect a class's sensitive data but allow controlled updates only if the new value is positive. How would you implement this using data hiding in Java?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions