Advertisement
makispaiktis

Job.java

Feb 3rd, 2019 (edited)
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1. public class Job {
  2.  
  3.     double priority;
  4.     String name;
  5.    
  6.     // Constructors
  7.     Job(){
  8.         priority = 0;
  9.         name = "";
  10.     }
  11.    
  12.     Job(double priority){
  13.         this.priority = priority;
  14.         name = "work";
  15.         }
  16.     Job(double priority, String s){
  17.         this.priority = priority;
  18.         name = s;
  19.     }
  20.    
  21.     // Setter
  22.     public void setPriority(double priority) {
  23.         this.priority = priority;
  24.     }
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement