Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Job {
- double priority;
- String name;
- // Constructors
- Job(){
- priority = 0;
- name = "";
- }
- Job(double priority){
- this.priority = priority;
- name = "work";
- }
- Job(double priority, String s){
- this.priority = priority;
- name = s;
- }
- // Setter
- public void setPriority(double priority) {
- this.priority = priority;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement