IBM
C2140-833 · Question #29
Why is encapsulation important? (Choose two.)
The correct answer is B. It places operations and attributes in the same object. D. It prevents other objects from directly changing the attributes of an object. See the full explanation below for the reasoning.
Question
Why is encapsulation important? (Choose two.)
Options
- AIt describes the relationship between two subclasses.
- BIt places operations and attributes in the same object.
- CIt allows other objects to change private operations and attributes of an object.
- DIt prevents other objects from directly changing the attributes of an object.
How the community answered
(41 responses)- A15% (6)
- B78% (32)
- C7% (3)
Community Discussion
No community discussion yet for this question.