Which represents part of a DAO design pattern?

Which represents part of a DAO design pattern?

Which represents part of a DAO design pattern?

A.
interface EmployeeDAO {
int getID();
Employee findByID (intid);
void update();
void delete();
}

B.
class EmployeeDAO {
int getID() { return 0;}
Employee findByID (int id) { return null;}
void update () {}
void delete () {}
}

C.
class EmployeeDAO {
void create (Employee e) {}
void update (Employee e) {}
void delete (int id) {}
Employee findByID (int id) {return id}
}

D.
interface EmployeeDAO {
void create (Employee e);
void update (Employee e);
void delete (int id);
Employee findByID (int id);
}

E.
interface EmployeeDAO {
void create (Connection c, Employee e);
void update (Connection c, Employee e);
void delete (Connection c, int id);
Employee findByID (Connection c, int id);
}



Leave a Reply 1

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