- 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
2 odpowiedzi
+ 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;
	}
} 
+ 1
Use JDBC and O/R mapping tool.



