Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package carparkmanager;
- /**
- *
- * @author Andrew
- */
- public class Revenue {
- int numCar;
- double cost = 3.3;
- double revenue;
- Overview ov;
- Vehicle v;
- public Revenue() {
- ov = new Overview();
- v = new Vehicle();
- }
- public int getNumCars() {
- numCar = ov.countNumberOfCars();
- return numCar;
- }
- public void setNumCars(int newNumCar) {
- this.numCar = newNumCar;
- }
- public double getCost(){
- return cost;
- }
- public void setCost(double newCost){
- this.cost = newCost;
- }
- public int getNumberOfCars(){
- return numCar;
- }
- public void setNumberOfCars(int newNumCar){
- this.numCar = newNumCar;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement