Advertisement
Guest User

Henrik Klaus Martin

a guest
Jan 16th, 2009
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.53 KB | None | 0 0
  1.  
  2.  
  3. public class myOrders {
  4.     private int theta, distance;
  5.  
  6.     public myOrders()
  7.     {
  8.         setAll(0,0);
  9.     }
  10.    
  11.     public myOrders(int theta, int distance) {
  12.         setAll(theta, distance);
  13.     }
  14.    
  15.     public void setAll(int theta, int distance) {
  16.         this.theta = theta;
  17.         this.distance = distance;
  18.     }
  19.    
  20.     public int getTheta() {
  21.         return theta;
  22.     }
  23.  
  24.     public void setTheta(int theta) {
  25.         this.theta = theta;
  26.     }
  27.  
  28.     public int getDistance() {
  29.         return distance;
  30.     }
  31.  
  32.     public void setDistance(int distance) {
  33.         this.distance = distance;
  34.     }
  35. }
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement