1Z0-805 · Question #27
Given: Which design pattern moves the getPerson, createPerson, deletePerson, and updatePerson methods to a new class?
The correct answer is B. DAO. We move the most abstract highest level methods into a separate class. Note:Data Access Object Abstracts and encapsulates all access to a data source Manages the connection to the data source to obtain and store data Makes the code independent of the data sources and data…
Question
Given:
Which design pattern moves the getPerson, createPerson, deletePerson, and updatePerson methods to a new class?
Exhibits
Options
- ASingleton
- BDAO
- CFactory
- DComposition
How the community answered
(29 responses)- A7% (2)
- B76% (22)
- C14% (4)
- D3% (1)
Explanation
We move the most abstract highest level methods into a separate class. Note:Data Access Object Abstracts and encapsulates all access to a data source Manages the connection to the data source to obtain and store data Makes the code independent of the data sources and data vendors (e.g. plain-text, xml, LDAP, MySQL, Oracle, DB2)
Topics
Community Discussion
No community discussion yet for this question.

