0
What is the objective of encapsulation in object-oriented programming?
- ATo create multiple instances of a class
- BTo enable one class to inherit from another class
- CTo allow objects to take multiple forms
- DTo combine data and methods that operate on that data within a single unit
Correct answer: D