What two changes should you make to apply the DAO pattern to this class?

Given: What two changes should you make to apply the DAO pattern to this class?

Given: What two changes should you make to apply the DAO pattern to this class?

A.
Make the Customer class abstract.

B.
Make the customer class an interface.

C.
Move the add, delete, find, and update methods into their own implementation class.

D.
Create an interface that defines the signatures of the add, delete, find, and update
methods.

E.
Make the add, delete, and find, and update methods private for encapsulation.

F.
Make the getName and getID methods private for encapsulation.



Leave a Reply 1

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