Which three statements are benefits of encapsulation?

Which three statements are benefits of encapsulation?

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



Leave a Reply 6

Your email address will not be published. Required fields are marked *


Carlos

Carlos

this test is useless, maximum five exam questions are here. I fail the test.

t

t

Carlos: shut up and get out of here

Alex

Alex

Even D is correct as well!

noname

noname

A B F

C:Encapsulation CANNOT prevent exception.
D:It’s variants, not invariants.
E:It isn’t associate with Encapsulation.