-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJob.java
34 lines (26 loc) · 985 Bytes
/
Job.java
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
public class Job extends Career {
private int salary;
private Title title; // Intern,junior,senior..
public Job(int id, String position, String deadline, Company company, String description, Technology technology,
int salary, Title title) {
super(id, position, deadline, company, description, technology);
this.salary = salary;
this.title = title;
}
public int getSalary() {
return salary;
}
public void setSalary(int salary) {
this.salary = salary;
}
public Title getTitle() {
return title;
}
public void setTitle(Title title) {
this.title = title;
}
@Override
public String toString() {
return "Job [id=" + getId() + ", position=" + getPosition() + ", deadline=" + getDeadline() + ", company=" + getCompany() + ", description=" + getDescription() + ", technology=" + getTechnology() + ", salary=" + salary + ", title=" + title + "]";
}
}