Question 4 / 121:  What are the pros of encapsulation?
Choose 3
<< First < Previous Flashcard Next > Last >>
Explanation:

Encapsulation means hiding the attributes of a class by marking them

private and restrict accessing them through public methods and also means hiding the internal implementation and representation of an object and provide to the outer world only an interface of public methods to access the object.

Answers: "avoid code duplicity " and "subtypes of a well-encapsulated class won't need to override most of the inherited methods ", have nothing to do with encapsulation

Exam Home Page
Attribution:  Oracle, Sun, Java and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle and/or its affiliates.
Ask
Edgar Delgado
Start Test
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/sun-certified-enterprise-architect-scea" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>