A-Level Computer Science Practice Questions - A-Level Computer Science Exam

Access More Questions
Which OOP principle is most directly violated when a class exposes its instance variables as public and allows external code to modify them freely?
Correct Answer:
Encapsulation

Access more questions from this quiz

Continue to A-Level Computer Science Practice Questions - A-Level Computer Science Exam for more practice questions and the full quiz experience.

Access More Questions