Which OOP concept bundles data and the functions that operate on that data into a single unit?
Options
A.
Encapsulation
B.
Polymorphism
C.
Inheritance
D.
More than one of the above
E.
None of the above
Correct Answer (Detailed Explanation is Below)
A.
Encapsulation
Detailed Explanation
Correct Answer: Option A
Explanation: Encapsulation combines data members and member functions within a class. Access specifiers such as private and public help control how the data can be accessed or modified.