Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.78 KB | None | 0 0
  1. package carparkmanager;
  2.  
  3.  
  4. /**
  5.  *
  6.  * @author Andrew
  7.  */
  8. public class Revenue {
  9.  
  10.     int numCar;
  11.     double cost = 3.3;
  12.     double revenue;
  13.     Overview ov;
  14.     Vehicle v;
  15.  
  16.     public Revenue() {
  17.         ov = new Overview();
  18.         v = new Vehicle();
  19.  
  20.     }
  21.  
  22.     public int getNumCars() {
  23.         numCar = ov.countNumberOfCars();
  24.         return numCar;
  25.     }
  26.  
  27.     public void setNumCars(int newNumCar) {
  28.         this.numCar = newNumCar;
  29.     }
  30.     public double getCost(){
  31.         return cost;
  32.     }
  33.    
  34.     public void setCost(double newCost){
  35.         this.cost = newCost;
  36.     }
  37.    
  38.  
  39.  
  40.  
  41.    
  42.     public int getNumberOfCars(){
  43.         return numCar;
  44.     }
  45.    
  46.     public void setNumberOfCars(int newNumCar){
  47.         this.numCar = newNumCar;
  48.     }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement