• Card 3 / 125:
    What does encapsulation mean?

    B) Encapsulation means hiding the attributes of a class by marking them private and restrict accessing them through public methods
    D) Encapsulation 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

  • Keyboard Shortcuts

    Previous Card ← Previous Card Button
    Next Card → Next Card Button
    Flip Card Space-Bar
<< First < Previous Next > Last >>

Show Choices Interative Question Exam Home Page

Total comments (2)

Anonymous User
 5 years
"restrict accessing them through public methods" could have been "restrict accessing them only through public methods"
To me option 2 is not framed correctly as intended. In the current frame "restrict accessing them through public methods" is not entirely true. It should have been framed as "provide accessing them through public methods".
Attribution:  Oracle, Sun, Java and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle and/or its affiliates.
Flash Cards plugin by Curtis Blackwell github.com/curtisblackwell/flash_cards