Multiple choice

How does an object-oriented programming help in the security of data?

  1. Using the concept of inheritance

  2. Using the concept of structures and unions

  3. Using the concept of encapsulation

  4. Using the concept of abstraction

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Encapsulation is the mechanism in object-oriented programming that binds together data and the functions that manipulate it, and keeps both safe from outside interference and misuse, thereby ensuring data security. Inheritance, structures, and abstraction serve different organizational or modeling purposes.