-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathApplication.java
More file actions
74 lines (62 loc) · 1.72 KB
/
Application.java
File metadata and controls
74 lines (62 loc) · 1.72 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package recruitmentsystem;
/**
*
* @author mahmo
*/
public class Application extends ApplicationConsole {
private int AppID;
private boolean status;
private int YearsOfExperiance;
private String proposal;
private int JobID;
public Application(int AppID, boolean status, int YearsOfExperiance, String proposal, int JobID) {
this.AppID = AppID;
this.status = status;
this.YearsOfExperiance = YearsOfExperiance;
this.proposal = proposal;
this.JobID = JobID;
}
@Override
public int getAppID() {
return AppID;
}
public void setAppID(int AppID) {
this.AppID = AppID;
}
public boolean getstatus() {
return status;
}
@Override
public void setstatus(boolean Approved) {
this.status = Approved;
}
@Override
public boolean checkjobid(int s){
if(this.JobID ==s)
return true;
else
return false;
}
public int getYearsOfExperiance() {
return YearsOfExperiance;
}
public void setYearsOfExperiance(int YearsOfExperiance) {
this.YearsOfExperiance = YearsOfExperiance;
}
public int getJobID() {
return JobID;
}
public void setJobID(int JobID) {
this.JobID = JobID;
}
@Override
public String displayApp(){
return("Application: " + "\nAppID=" + AppID + ".\nApproved: " + status + ".\nProposal: " + proposal +
".\nYearsOfExperiance: " + YearsOfExperiance + '.');
}
}