Object-Oriented Programming (OOP)
Select the correct name for: the practice of restricting direct access to an object's internal data to protect it from unintended interference.
- A. Instance variable
- B. Static member
- C. Composition over inheritance
- D. Data hiding ✓
Correct answer
D. Data hiding
Explanation
Data hiding refers to the practice of restricting direct access to an object's internal data to protect it from unintended interference.