Oracle
1Z0-807 · Question #19
You are designing a new subsystem to store and scratch for user commands in a fashion company's website. On class, CommentManager, is responsible for accessing comment data and providing read- only…
The correct answer is A. The storage mechanism implemented in CommentManager must be private to CommentManager. C. The comments must be assessable directly only within CommentManager. See the full explanation below for the reasoning.
Question
You are designing a new subsystem to store and scratch for user commands in a fashion company's website. On class, CommentManager, is responsible for accessing comment data and providing read- only access to other objects in the subsystem. Which two implementation details are necessary for the Cementmanager class?
Options
- AThe storage mechanism implemented in CommentManager must be private to CommentManager.
- BAll the accessor and mutator methods in CommentManager must have the static modifier in their
- CThe comments must be assessable directly only within CommentManager.
- DCommentManager should be a singleton object.
How the community answered
(30 responses)- A83% (25)
- B7% (2)
- D10% (3)
Community Discussion
No community discussion yet for this question.