Task 3: Complete the Job Class
Now open the Job
file. OOF! There are a lot of fields declared and not much else.
Code a constructor to initialize the
id
field with a unique value. This constructor should take no parameters.Code a second constructor that takes 5 parameters and assigns values to
name
,employer
,location
,positionType
, andcoreCompetency
. Also, this constructor should call the first in order to initialize theid
field. Make sure the parameters are defined in the specified order.Generate getters and setters for each field EXCEPT
nextID
andid
.Generate a getter for the
id
field.Generate the
equals
andhashCode
methods. Consider twoJob
objects equal when their id fields match.
Tip
Now would be a good time to save
, commit
, and push
your work up to GitHub.