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
idfield 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 theidfield. Make sure the parameters are defined in the specified order.Generate getters and setters for each field EXCEPT
nextIDandid.Generate a getter for the
idfield.Generate the
equalsandhashCodemethods. Consider twoJobobjects equal when their id fields match.
Tip
Now would be a good time to save, commit, and push your work up to GitHub.