Which three statements are benefits of encapsulation?
A.
allows a class implementation to change without changing t he clients
B.
protects confidential data from leaking out of the objects
C.
prevents code from causing exceptions
D.
enables the class implementation to protect its invariants
E.
permits classes to be combined into the same package
F.
enables multiple instances of the same class to be created safely
this test is useless, maximum five exam questions are here. I fail the test.
Carlos: shut up and get out of here
Even D is correct as well!
A b d
A B F
C:Encapsulation CANNOT prevent exception.
D:It’s variants, not invariants.
E:It isn’t associate with Encapsulation.
???