Home / Questions / How does OOP improve security?
Explanatory Question

How does OOP improve security?

👁 20 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

OOP improves security using:

  • Encapsulation (data hiding)

  • Private access modifiers

  • Controlled access via getters/setters

It prevents unwanted access and accidental modification of data.