OOP & Design Patterns - Encapsulation - Data Hiding, Getters/Setters & Access Modifiers
Given a private field with a public getter but no setter, what happens if external code attempts to assign a new value directly to the field?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions