Which statement best describes encapsulation?

Which statement best describes encapsulation?

Which statement best describes encapsulation?

A.
Encapsulation ensures that classes can be designed so that if a method has an
argument MyType x, any subclass of MyType can be passed to that method.

B.
Encapsulation ensures that classes can be designed so that only certain fields and
methods of an object are accessible from other objects.

C.
Encapsulation ensures that classes can be designed so that their methods are
inheritable.

D.
Encapsulation ensures that classes can be designed with some fields and methods
declared as abstract.



Leave a Reply 12

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


vepr85

vepr85

B.
Encapsulation ensures that classes can be designed so that only certain fields and
methods of an object are accessible from other objects.

Xsvier

Xsvier

B definitely

Rahul Kumar

Rahul Kumar

can some one share the dumps for Java 8 Exam 1Z0-808