Which of the following is a characteristic of object-oriented programming?
A
Sequential execution only
B
No data types
C
No functions
D
Encapsulation
Correct Answer: Option D — Encapsulation
Explanation:
Encapsulation is a core characteristic of object-oriented programming, referring to the bundling of data and methods that operate on that da...
Encapsulation is a core characteristic of object-oriented programming, referring to the bundling of data and methods that operate on that data within a single unit or class.