- 1

how to develop a system that can track employee information for an organization. the employee information you must store is as follows: +Name +sex +job title +organization they work for +birthday +employee id the organization should have three departments which has the following attributes +department name +city +department id

need the code

8th Aug 2016, 9:57 AM
George
George - avatar
2 Answers
+ 3
Just create a class called Employee and a field for every employee info. And the organization field can be an array or even another class called Organization. class Employee { public static final int MAN = 10; public static final int WOMAN = 15; private String name; private int sex; private String jobTitle; private Organization organization; private Date birthday; private int employeeID; public Employee(String name, int sex, String jobTitle, Organization organization, Date birthday, int employeeID) { this.name = name; this.sex = sex; this.jobTitle = jobTitle; this.organization = organization; this.birthday = birthday; this.employeeID = employeeID; } }
8th Aug 2016, 10:09 AM
Lordeblader
+ 1
Use JDBC and O/R mapping tool.
8th Aug 2016, 10:01 AM
WPimpong
WPimpong - avatar