-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathEmployee.java
More file actions
44 lines (36 loc) · 1004 Bytes
/
Employee.java
File metadata and controls
44 lines (36 loc) · 1004 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package databases;
public class Employee {
private String empName;
private String empID;
private String empDOB;
public static void main (String[] args){
Employee raji = new Employee("Raji", "2762", "16-07-1995");
System.out.println(raji.getEmpName());
System.out.println(raji.getEmpID());
System.out.println(raji.getEmpDOB());
public Employee(){}
public Employee(String empName, String empID, String empDOB) {
this.empName = empName;
this.empID = empID;
this.empDOB = empDOB;
}
public String getEmpName() {
return empName;
}
public void setEmpName(String empName) {
this.empName = empName;
}
public String getEmpID() {
return empID;
}
public void setEmpID(String empID) {
this.empID = empID;
}
public String getEmpDOB() {
return empDOB;
}
public void setEmpDOB(String empDOB) {
this.empDOB = empDOB;
}
}
}