Advertisement
Guest User

Vehicle

a guest
Jan 27th, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.51 KB | None | 0 0
  1. public abstract class Vehicle{
  2.     public int getNumberOfTires() {
  3.         return numberOfTires;
  4.     }
  5.  
  6.     public int getId() {
  7.         return id;
  8.     }
  9.  
  10.     public void setId(int id) {
  11.         this.id = id;
  12.     }
  13.  
  14.     private int id;
  15.  
  16.     public double getHighestBid() {
  17.         return highestBid;
  18.     }
  19.  
  20.     public void setHighestBid(double highestBid) {
  21.         this.highestBid = highestBid;
  22.     }
  23.  
  24.     private double highestBid;
  25.  
  26.     public void setNumberOfTires(int numberOfTires) {
  27.         this.numberOfTires = numberOfTires;
  28.     }
  29.  
  30.     public VehicleTypeEnum getvType() {
  31.         return vType;
  32.     }
  33.  
  34.     public void setvType(VehicleTypeEnum vType) {
  35.         this.vType = vType;
  36.     }
  37.  
  38.     public int getNumberOfPassangers() {
  39.         return numberOfPassangers;
  40.     }
  41.  
  42.     public void setNumberOfPassangers(int numberOfPassangers) {
  43.         this.numberOfPassangers = numberOfPassangers;
  44.     }
  45.  
  46.     private int numberOfTires;
  47.  
  48.     private VehicleTypeEnum vType;
  49.  
  50.     public String getColor() {
  51.         return color;
  52.     }
  53.  
  54.     public void setColor(String color) {
  55.         this.color = color;
  56.     }
  57.  
  58.     private String color;
  59.  
  60.     public double getPrice() {
  61.         return price;
  62.     }
  63.  
  64.     public void setPrice(double price) {
  65.         this.price = price;
  66.     }
  67.  
  68.     private double price;
  69.  
  70.     public String getModel() {
  71.         return model;
  72.     }
  73.  
  74.     public void setModel(String model) {
  75.         this.model = model;
  76.     }
  77.  
  78.     public String getBrand() {
  79.         return brand;
  80.     }
  81.  
  82.     public void setBrand(String brand) {
  83.         this.brand = brand;
  84.     }
  85.  
  86.     public int getNumberOfGears() {
  87.         return numberOfGears;
  88.     }
  89.  
  90.     public void setNumberOfGears(int numberOfGears) {
  91.         this.numberOfGears = numberOfGears;
  92.     }
  93.  
  94.     public int getHorsePower() {
  95.         return horsePower;
  96.     }
  97.  
  98.     public void setHorsePower(int horsePower) {
  99.         this.horsePower = horsePower;
  100.     }
  101.  
  102.     public String getType() {
  103.         return type;
  104.     }
  105.  
  106.     public void setType(String type) {
  107.         this.type = type;
  108.     }
  109.  
  110.     public double getFuelConsumption() {
  111.         return fuelConsumption;
  112.     }
  113.  
  114.     public void setFuelConsumption(double fuelConsumption) {
  115.         this.fuelConsumption = fuelConsumption;
  116.     }
  117.  
  118.     private String model;
  119.     private String brand;
  120.     private int numberOfGears;
  121.     private int horsePower;
  122.     private String type;
  123.     private double fuelConsumption;
  124.     private int numberOfPassangers;
  125.  
  126. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement